I have a number of dropdown lists in my app for people to be able to chose items from static lists.
To improve performance, I put them all in one table which has a column specifying which dropdown list each item belongs to. So the reference columns pointing to the table with the dropdowns each has a valid_if conditions like:
SELECT(dropdownTable[id], [listType] = “reports”)
This works just fine.
What I would now like to do is to add further checks to these dropdown columns. An example would be that a certain report or type of email can not be generated unless certain data has been provided.
So I would like to add a condition like:
if(
AND(
[_THIS]=“report1”, //The user is choosing to generate report1
[status]<>"ready), // But the status of this record is not ready
FALSE(),
TRUE()
)
So if a user selects report1 before column status is equal to “ready”, an error message is shown.
What I can’t figure out is if it is possible to add an expressions returning a yes/no to the select statement (which returns a list) I need to get the rights part of the dropdown table.
Has anyone managed to do this?