I have an App that uses floor level data in a column called [Level].
This has the text values 00, 10, 20 etc for Ground, Level 1 = (10), Level 2 = (20) etc
I am forced to use this naming convention.
On each level there are rooms with numbers related to which floor level they are on.
[Room Number] is text based and looks like this 0123, 1324, 211A where the first digit is the floor level.
I’d like the ENUM to display only the room numbers for the floor level that the user selects as they add or edit records. For example, Level 20 will display all Room Numbers beginning with 2, eg 2012, 2034, 2055
I tried this code in a Suggested Values for the ENUM [Room Number] but was unsuccessful
@Steve_Fuller
You are trying to compare numbers with text values. Hence; TEXT(0) <> NUMBER(0) and that’s way the expression do not filter the records in the dropdown. Try with this:
Hi, thank you for taking the time to reply.Unfortunately, it gave the same result.
However, taking on board what you said I entered SELECT(Level 01[Room Number], (LEFT([Room Number],1) = 4), FALSE)
This does work! BUT I cannot get it to work dynamically
Hi. I’ve noticed that the Valid_If is restricting data input to the single character,which I suppose it is designed to do. BUT not restricting the display of data to the single character
@Steve_Fuller
I may advise selecting the whole column and format it as Plain Text in the gSheet first. The evaluation in the gSheet and the AppSheet might be different. Provided your columns’ type are also set as Text in the column structure, to test it, create a VC and first test with:
LEFT([Room Number],1) = LEFT([Level],1) and then test the same with enclosing both sides with NUMBER() expression. I believe the results shall be different.