Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Caller Form Name from Called Form in AX 2012

(0) ShareShare
ReportReport
Posted on by 362

Hi Friends,

I am trying to control the visibility of combo box values of type enum based on the Caller Form. For Example If my Enum Values are A,B,C which are bound in Form B. When  we navigate the FormB from Form A i have to show only A and B in the Combobox. Similarly when i navigate to FormB fromm Form C the Combo box values should show A,B and C values.Could you please help me in cracking it.

Thanks

Venky 

*This post is locked for comments

  • Verified answer
    startax Profile Picture
    startax 1,845 on at
    RE: Caller Form Name from Called Form in AX 2012

    Hi Venkat ,

    You can get caller form name using code

    FormRun        caller;

    caller =  element.args().caller();

    if (caller.args().name() == formstr(salestable))

    {

      /////

    }

    But its also depend how you are calling your second form;

  • Venkatdax0 Profile Picture
    Venkatdax0 362 on at
    RE: Caller Form Name from Called Form in AX 2012

    Hi Sukrut,

    Thanks a lot. I have followed the steps as per Douglas post and i am able to hide the enum elements.However i am facing challenge in finding the caller as i need to hide the enum elements based on the caller form.Could you please help in this regard.

    Regards

    Venky

  • Douglas Noel Profile Picture
    Douglas Noel 3,905 on at
    RE: Caller Form Name from Called Form in AX 2012

    Hi,

    this one?

    community.dynamics.com/.../hide-enum-values-at-run-time-ax-2012

    regards Douglas

  • Venkatdax0 Profile Picture
    Venkatdax0 362 on at
    RE: Caller Form Name from Called Form in AX 2012

    Hi Sukrut,

    Thanks a lot. I have tried implementing as per the blog but still i could not achieve it as it is not hiding the enum elements.Could you please help in this regard.

    Thanks

    Venky

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

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,971 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,846 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans