I have a datapage hat allows the user to (multi) select from a list of options and once they have selected some, it provides a result. The result is dependant on what is selected.
My table is set up using a list-string of items 'HAZARDS' and each of these is either a CAT B or CAT C item.
So the user selects from the HAZARD list and if they select any that are CAT C in the table, the result is CAT C, if they only select those which are CAT B it is CAT B.
I have used the following code: CASE WHEN '[@ICAO_CAT]' LIKE '%CAT B%' OR '[@ICAO_CAT]' LIKE '%CAT C%'THEN'C'ELSE'B'END
But it is not working - it allows a multi selection, but nothing happens with the ICAO_CAT result - it remains as B regardless. I have attached the table setup to show and a screenshot of the Datapage.
How do I get it to actually change based on the ICAO_CAT shown in the table?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Bacon
I have a datapage hat allows the user to (multi) select from a list of options and once they have selected some, it provides a result. The result is dependant on what is selected.
My table is set up using a list-string of items 'HAZARDS' and each of these is either a CAT B or CAT C item.
So the user selects from the HAZARD list and if they select any that are CAT C in the table, the result is CAT C, if they only select those which are CAT B it is CAT B.
I have used the following code:
CASE WHEN '[@ICAO_CAT]' LIKE '%CAT B%' OR '[@ICAO_CAT]' LIKE '%CAT C%' THEN 'C' ELSE 'B' END
But it is not working - it allows a multi selection, but nothing happens with the ICAO_CAT result - it remains as B regardless. I have attached the table setup to show and a screenshot of the Datapage.
How do I get it to actually change based on the ICAO_CAT shown in the table?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.