Powered By Blogger

Filter Enum values in form lookup – D365 FO

 

When an Enum is added to a form control, by default all the enum values are displayed in the form as lookup . There are situations where only few of the enum values are needed. How can we do it?
  1. Create a new form and add a new ComboBox control to it. In this post, let us take the enum ‘SalesStatus’.
  2. Let us name the control as SalesStatusCombo.
        FormName_ComboBox
3. As discussed , we are filtering the values of the Enum and display them in the lookup.
    The logic will be brought in Init method of the form . Given below the screenshot
    InitMethod
4. Build the solution and the changes will be visible in the UI.
FormDisplay

No comments:

Post a Comment

DisableStandredButton

 My requirement is to disable the delete button for journals that were posted:- After Posting the button is enabled fig:- Line level also th...