Dear All,
Can you please let me know
A). I will add METHODS
1. New method in Standard Table.
2. New method in Standard Form
3. New method in Standard Form DS
4. New method in Standard Form Control.
B). How I will call EVENTS in Standard(Table, Form, Form DS, Form Control) ?
Example :
Form > SalesTable > Event > OnActivated
Form > DS > SalesTable > OnCreated
Form Control > SalesTable_SalesTypeGrid > Event > OnValidating
Table > LedgerJournalTable > Event > OnDeleting
How I will call the above events from Standard Objects ?
Please give me more shed on this.
Thanks!
*This post is locked for comments
Thanks Sukrut
If u wants to add some validation in OnInserting
Ist possible?
Thanks!
Thanks Nikoloas and Sukrut
So, I can't add directly new method on Form DS OR Form control as well.
In Section B I mentioned above how I will call Events in Standard Form, Table , Form DS and Form control ?
Can you please send me the sample code.
Thanks!
1 and 2 should be possible with PU 20 which has just been released. At least you can use CoC on form ds methods and control methods. So I would guess you can also add methods.
I haven't yet seen documentation on how exactly to use it (syntax). Maybe you can try it and share the results with us?
Hi All,
Still I have doubt in below points
1. How i will add New method in Standard Form DS
2. How i will add New method in Standard Form Control.
Through below code I can call directly Table OR Form OR Class
[ExtensionOf(classStr(MyClass))]
final class MyClass_Extension
{
// method
private void new()
{
}
}
Please give me more she'd on this.
Thanks!
Thanks Nikoloas,
Sure,I will go through the documents or link.
I am asking because in my mind some questions are raising. I am new to D365FO
Any way, Thanks!
Please read the documentation and try for yourself. With these two methods you will learn so much more about these D365FO development fundamentals.
If you can't find answer in the documentation and your code has issues, then ask from others.
I'm saying this because you seem to be asking so many questions about things that you could find in one minute from the documentation or by experimenting.
Thanks Martin,
You mean to say find(), display() Or any new method correct?
Please give me more shed on this.
Thanks!
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156