Hey guys,
Anyone have a good suggestion that would have AppSheet check the rows in a table for a value and set a flag if it is found, without using a SELECT() or FILTER() VC or similar?
Specifically: If the [Notes] column of any row in a table is empty, set the flag so it can be easily seen elsewhere in the app.
For example:
COUNT(SELECT(Table[ID], ISBLANK([Note])))
Using a count works, and all the other tables have to do is check to see if the value is greater than zero.
Unfortunately, in a VC it's expensive, so just asking around to see if anyone has a computationally simpler option?
Solved! Go to Solution.
I see, thanks. In that case what I do is to create references only for the sake of avoiding expensive expressions.
For example:
You might need to rethink the way your data is organized. What do you mean by it can be easily seen? You already know whether you have blank values, why would you put an additional flag? And why you want to set it from other tables?
I have a 'Menu' page in the app which is held within its own [Menu] table as it has many options:
The little red dot shows up if there's a timecard with an error on it.
The flag is attached to another table [Timecards], and the Format Rules (notification dot) needs a simple formula to check that flag, and that decides whether to show the notification dot or not.
If I enter a complex formula into the Format Rules it has a detrimental impact on load times.
I see, thanks. In that case what I do is to create references only for the sake of avoiding expensive expressions.
For example:
User | Count |
---|---|
43 | |
26 | |
23 | |
14 | |
12 |