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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Disabling only the active rules.

(1) ShareShare
ReportReport
Posted on by 4
I have a field named Rule Id in a form know as Rule forms from where I can make the rule either active or deactive. In another form, I am using the same field where it uses the edit method to show a drop down. Now, my requirement is to display only the active rules on the drop down and the deactive ones should not be displayed. Provide some thoughts over this. Thanks in advance.
 
Thanks, 
C4u
  • Suggested answer
    Mohit Rampal Profile Picture
    12,573 Moderator on at
    Hi, You can try using onLookup Event of edit method Form control and add range on Active rules.
     
    http://thinkinginax.blogspot.com/2018/04/creating-lookup-control-in-d365.html?m=1
  • Suggested answer
    Waed Ayyad Profile Picture
    9,222 Super User 2026 Season 2 on at
    Hi,
     
    You can override lookup method or use event handler in case it is standard form and add range to get only active rules.
     
     
    Regards,
    Waed
  • CU27040943-9 Profile Picture
    3 on at
    Hi, 

    Can you guys ( Waed Ayyad and Mohit Rampal ) be bit more specific about the scenario since I have similar task to do so ?

    In my case, I have a jumpref where the active status is being checked but still I am getting both the active and deactive ones on the UI.

    if (rules.Active){
            args.lookupRecord(rules);}

    Can you provide your thoughts for this ?

    Thanks & Regards.
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 539 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 431 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 184

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans