OmeLuuk
13th November 2023, 16:55
Just wondering, in a CDF field I use a list to categorize items in our webshop. The list defined in ttadv4592m000 a bit like:
1 = normal, all shops
2 = attention, all shops
3 = attention, shop 1
4 = attention, shop 2
5 = attention, shop 3
6 = pricereduction, all shops
7 = pricereduction, shop 1
8 = pricereduction, shop 2
9 = pricereduction, shop 3
Now I want to offer a form.command where all selected items can be assigned a specific (user input) value instead of opening them all one by one.
So in the before.choice of the form.command I would like to allow users to input the new value from a predefined list as defined in "Lists" [ttadv4592m000] / "List Constants" [tdadv4593m000] and assign this value to a variable, to set the selected items to that value.
Would the above defined list be a (tx) domain, I would have been able to use it in the ask.enum function to request a new value. With the set.ask.enum.values I could exclude value 5 and 9 (as was done in the CDF hooks tcibd001.cdf_kind.nr5.is.applicable and tcibd001.cdf_kind.nr9.is.applicable both return false) because shop 3 is not live.
How to achieve this with the "Lists" [ttadv4592m000] / "List Constants" [tdadv4593m000]?
1 = normal, all shops
2 = attention, all shops
3 = attention, shop 1
4 = attention, shop 2
5 = attention, shop 3
6 = pricereduction, all shops
7 = pricereduction, shop 1
8 = pricereduction, shop 2
9 = pricereduction, shop 3
Now I want to offer a form.command where all selected items can be assigned a specific (user input) value instead of opening them all one by one.
So in the before.choice of the form.command I would like to allow users to input the new value from a predefined list as defined in "Lists" [ttadv4592m000] / "List Constants" [tdadv4593m000] and assign this value to a variable, to set the selected items to that value.
Would the above defined list be a (tx) domain, I would have been able to use it in the ask.enum function to request a new value. With the set.ask.enum.values I could exclude value 5 and 9 (as was done in the CDF hooks tcibd001.cdf_kind.nr5.is.applicable and tcibd001.cdf_kind.nr9.is.applicable both return false) because shop 3 is not live.
How to achieve this with the "Lists" [ttadv4592m000] / "List Constants" [tdadv4593m000]?