Combo Box options per condition

Hello All,

i have an entity with the below options

Option 1

Option 2

Option 3

Option 4

The request is when the X condition is `true, then the Option 2 and Option 3 i want to be displayed. Else, all options will be displayed. Any suggestion?

Solution

Hi, George, my recommendation is that you have your dropdown options loaded from a Static Entity, and in that Static Entity you have a flag attribute to control whether the option will be displayed or not.

Then you bind the dropdown to an aggregate that retrieves the data from the Static Entity filtering by that flag according to your condition.

Hope that helps.

Solution

Hi George Mitsiou,

Can you describe more what is your x condition. for entity.


Regards

Rahul Sahu

any example oml?

João's answer is the best way to do it.