I'm looking right now at dynamic picklists based on other values, and I don't quite see how it works.
Let's say as the simplest case, I have the following two fields, "ExampleCategory" and "ExampleSubcategory". A user chooses a value from "ExampleCategory" and that changes what is available to select in "ExampleSubcategory".
ExampleCategory
ExampleSubcategory
One
One A
One
One B
One
One C
Two
Two A
Two
Two B
Three
Three A
Three
Three B
Three
Three C
If the user chooses "Two" for ExampleCategory, I'd like the ExampleSubcategory options to be "Two A", "Two B".
It seems like the spec is close.
There's a SET_PICKLIST action that would allow for setting which values of the picklist to display.
There's a boolean expression [ExampleCategory] == "Two" for determining what the user has selected.
There is an expression that can return a set or list of picklist items SET("Two A", "Two B") to return which picklist items to display.
But how can they be combined?
As far as I can tell from the spec, there isn't any if/then or ternary operator that would allow returning the value
The above would get unwieldy quickly anyway; it would be nice to have them in separate actions somehow? But as far as I can tell from the spec, only SET actions get run after an ACCEPT?
I am interested in using RCP WEBAPI-019 to run client-side validations on a listing input project.
I'm reading through RCP - WEBAPI-019 Validation Exrpession in the WebAPI on Confluence and Validation Expression Grammer in darnjo/rcp019 (linked from RESOStandards/transport's web-api-validation-expression.md),
I'm looking right now at dynamic picklists based on other values, and I don't quite see how it works.
Let's say as the simplest case, I have the following two fields, "ExampleCategory" and "ExampleSubcategory". A user chooses a value from "ExampleCategory" and that changes what is available to select in "ExampleSubcategory".
If the user chooses "Two" for ExampleCategory, I'd like the ExampleSubcategory options to be "Two A", "Two B".
It seems like the spec is close.
SET_PICKLIST
action that would allow for setting which values of the picklist to display.[ExampleCategory] == "Two"
for determining what the user has selected.SET("Two A", "Two B")
to return which picklist items to display.But how can they be combined?
SET
actions get run after anACCEPT
?false
or aLIST
are allowed inSET_PICKLIST
RuleExpression
field, so there's no option for something like a "test expression" and a "value expression"I really love the idea of
SET_PICKLIST
/RESTRICT_PICKLIST
if I can understand how to get it to work. What am I missing?