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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Accessing form control from X++

(0) ShareShare
ReportReport
Posted on by 497

Why stringedit can't access to x++??

i was set auto declaration property to yes..

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    it should be accessible after setting AutoDeclartion= yes and saving  changes.

    what issue are you facing, despite of doing above practice?

  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    Hi Murtafiah, please use more descriptive titles for your questions. Saying that it's about Dynamics AX isn't enough, because that's true for all questions in the forum.

    Also, please tell us more about what you're doing and what failed. You will have a much better chance to get an answer if you give us a better description.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Murtafiah Via,

    Please be more specific, but here are a few pointers. Set the autodeclaration property to Yes in your controls.

    //Example setting value

    MyStringEdit.text('Ok');

    MyDateControl.dateValue(today());

    //Example checking value

    if (MyStringEdit.valueStr() == '')

       {

           throw error('Please enter value in stringedit.');

       }

    //Example assigning value

    MyTable.MyField      = MyStringEdit.valueStr();

  • Verified answer
    murtafiah Profile Picture
    497 on at

    All...

    my problem has been resolved, thank you..

    you are very care..

  • cacious Profile Picture
    5 on at

    thank you it worked

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans