Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Form Data source access methods

(0) ShareShare
ReportReport
Posted on by

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++.

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Form Data source access methods

    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.

  • Blue Wang Profile Picture
    on at
    RE: Form Data source access methods

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,274 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,947 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans