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)

Caller Form Name from Called Form in AX 2012

(0) ShareShare
ReportReport
Posted on by 364

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

I have the same question (0)
  • Venkatdax0 Profile Picture
    364 on at

    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

  • Douglas Noel Profile Picture
    3,905 on at

    Hi,

    this one?

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

    regards Douglas

  • Venkatdax0 Profile Picture
    364 on at

    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

  • Verified answer
    startax Profile Picture
    1,845 on at

    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;

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans