Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

How to limits options from Base Enums ?

(1) ShareShare
ReportReport
Posted on by 954
Hi guys,
 
In my company, the Purchase Orders are from external integration, however there are one exception that user may permitted to create new PO manually, as long as it is for return only. So, when creating New PO, and dialog box selection of Purchase Type, I want user can only select Returned Order. Except of course if your are an Admin, which the selection will be as standard.
 
May I get an advice, how we can do it ?
 
Thanks in advance
  • Waed Ayyad Profile Picture
    Waed Ayyad 6,502 Super User 2024 Season 2 on at
    How to limits options from Base Enums ?
    Hi Community member,
     
    Is your issue resolved? If yes, please verify the correct answers.
     
     
    Thanks,
    Waed Ayyad
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,617 Super User 2024 Season 1 on at
    How to limits options from Base Enums ?
    One way is as Martin suggested to disable the control and give default value as return type only.
     
    Second way is if user selects other than return type throw validation error.
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,502 Super User 2024 Season 2 on at
    How to limits options from Base Enums ?
    Hi Community member,
     
    Try this solution by deleting unwanted values on the enter or run method of the form:
     
     
    Thanks,
    Waed Ayyad
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
     
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,503 Most Valuable Professional on at
    How to limits options from Base Enums ?
    If users can't select any other value, then there is no point giving them the option to choose a value. Hide the control or make it read-only and initialize the value in code.

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans