Hi Can any one help through code .
How to access form data source methods in class, can I get the code for this in X++.
Hi Can any one help through code .
How to access form data source methods in class, can I get the code for this in X++.
Hi mahiims18,
you can just call the methods as long as you have the reference to the data source object.
For example "myDataSource.myMethod();".
If you need any more details, please share more details about your situation.
Hi mahiims18,
Have you got your datasource object?
FormDataSource MyRandomTable_ds = sender.dataSource(formDataSourceStr(SomeForm, MyRandomTableDS));
Check here: daxingwitheshant.blogspot.com/.../get-formrun-form-control-datasource-and.html
André Arnaud de Cal...
293,274
Super User 2025 Season 1
Martin Dráb
231,947
Most Valuable Professional
nmaenpaa
101,156
Moderator