web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Reg form controls

(0) ShareShare
ReportReport
Posted on by 568

Hi,

I have created a stringedit field in the form with is not bound to a datasource .

Now what I want is o know how to call the these controls in class.

Please advice

*This post is locked for comments

I have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    Set property AutoDeclaration to Yes on the controls. Now you can refer to the controls from the form's x++ code simply with their names.

    If you need to reach them from a class, add get-methods for the controls in your form. Then if you have your form (FormRun) in variable of type Object in your class, you can call the get methods. But there is no compile time check if such methods exist on your form, so check your code carefully to avoid runtime errors. Please see this discussion for more details: [View:https://dynamicsuser.net/ax/f/technical/52366/calling-form-parm-methods-in-class]

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans