Hello. SWITCH(MAX(SELECT(TEMP[changecount], ...

111
New Member

Hello.

SWITCH(MAX(SELECT(TEMP[changecount], IN(today(),LIST(TEMP[days])))),

0, โ€œREAD_ONLYโ€,

โ€œADDS_AND_DELETESโ€)

I use this formula for table permission about updates, adds, deletes, read-only. This is on โ€˜are updates allowed?โ€™ question in Tables Tab.

I made virtual columns has formula

โ€˜MAX(SELECT(TEMP[changecount], IN(today(),LIST(TEMP[days]))))โ€™ for log.

But when the output of Log is 0, Table permission is not READ_ONLY but ADDS_AND_DELETES.

Instead of changecount type column, When I use just number type column, The result is READ_ONLY! ( log is 0 )

So, I think this problem is about column type. How can I use first formula included changecount column for table permission?

Always Thank your kindness.

0 8 457
8 REPLIES 8

LIST(TEMP[days]) may be a problem. TEMP[days] is a column list, which is a list already. It shouldnโ€™t then be wrapped in LIST().

What happens if you wrap MAX(โ€ฆ) in NUMBER()?

111
New Member

MAX(SELECT(TEMP[changecount], IN([days],LIST(today())))). Sorry, Again, I used this formula. but problem still exists.

111
New Member

When I use โ€˜MAX(SELECT(TEMP[numberColumn], IN([days],LIST(today()))))โ€™, If the result of log was 0, permission was set to READ_ONLY as intended.

111
New Member

Did I lose my chance to get answer?TT

Did you try NUMBER(MAX(โ€ฆ))?

111
New Member

ahhh, Sorry. I misunderstand your advice. Just now , I try max() in number. but the problem remains. And before save, I tested. Test result is as intended( When criteria is 0, READ_ONLY else ADDS_AND_DELETES ). But after save, the app donโ€™t show that result. It seems to be a bug.

Yes, it sounds like a bug. Please report it to support@appsheet.com.

Top Labels in this Space