Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Accessing form control from X++

(0) ShareShare
ReportReport
Posted on by 495

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

i was set auto declaration property to yes..

*This post is locked for comments

  • cacious Profile Picture
    cacious 5 on at
    RE: Accessing form control from X++

    thank you it worked

  • Verified answer
    murtafiah Profile Picture
    murtafiah 495 on at
    RE: Accessing form control from X++

    All...

    my problem has been resolved, thank you..

    you are very care..

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Accessing form control from X++

    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();

  • Martin Dráb Profile Picture
    Martin Dráb 230,605 Most Valuable Professional on at
    RE: Question about axapta 2012

    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.

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: Question about axapta 2012

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

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

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,904 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans