Dropdown filtered by MicroWorkflow

1
I need to populate a dropdown box, but only allow certain values in the dropdown. Lets say for instance I had to filter every second enumeration, how would I do this? I maintain a lookup table, equivelant to my enumeration, where each enumeration has a "Show" property of type boolean. So I need to know how to filter the dropdown?
asked
4 answers
1

In the XPathconstraint property: "[Show]"

See the documentation

answered
1

Perhaps a Xpath constraint will help you out?

answered
0

It sounds as though you should not be using an enumeration at all, but using your lookup table and a relationship between that and your primary object. That way you can use the X-Path constraint as Michel suggests. The association is shown as a drop-down list on your primary object form.

If you really need the value stored as an enumeration in your domain model, you could then set the enum field from the association using a microflow (on change, before commit etc.)

answered
0

Thanks, but I was using a normal Dropdown, not a Reference Selector. I've changed it now to reference selector, based on the advice and clues you gave me.

It does the job now, but a filter on dropdown selections might be a nice feature in the future?

answered