Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Caller Form Name from Called Form in AX 2012

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans