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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans