“Me[Position]” is a slice of a Users table that returns only one row (the current user) and the column returned is an EnumList.
Intended behavior is to return TRUE (show column on form) if the current user has “Supervisor” and/or “Manager” in their Position column.
The Test Table Data returns TRUE but yet no field is displayed. Have this problem on multiple columns in multiple apps now, when I could have sworn it worked before (dont hold me to that, I’m still a noob).
Removing the expression or using a simpler true/false statement shows the column as intended (so its not a column order setting on a view at least).
Thank you for your response. I tried this initially, and the problem I had was lookup was a list and so was the column returned. I didnt set it up exactly like that but will try just that and let you know.
My second thought on making a slice instead of a lookup was because this returned result would be done multiple times per app normal app usage. Not exactly sure yet how much little things like that matter in this platform.
My second thought on making a slice instead of a lookup was because this returned result would be done multiple times per app normal app usage. Not exactly sure yet how much little things like that matter in this platform.
Should be: IN( ANY( Me[Position] ) , {"Supervisor" , "Manager"} )
and that’s it.
or @LeventK’s solution but with the inputs swapped, because they’re backwards.
Sure.
I found that I had the same Error described here:
[Trying to get a Filtered View based on Enum List](https://community.appsheet.com/t/trying-to-get-a-filtered-view-based-on-enum-list/22400) Questions
Greetings, I’m trying to create an action for Search Form to get filtered view of Users which have the Accounts of all chosen Account Types. App tables: Users | User Name | Related Accounts (virtual list of refs) | Accounts |Account ID | User(Ref to Users) | Account Type(Ref to Account Types) | Account Types | Type | Related Accounts (virtual list of refs) | Search | ID | Search Types(Enum list of Refs to Account Types) | If Search Types is empty - show all users without accounts If Search…
Instead of adding a blank list to the list, SPLIT was suggested to me to use after I contacted support.
ISNOTBLANK(> INTERSECT(> SPLIT(> LOOKUP(> USEREMAIL(),> “USERS”,> “ID”,> “POSITION”> ),> “,”> ),> {“Supervisor” , “Manager”}> )> )> Works as intended. Thank you. I am gonna try to see if there is a way to do this with a slice still, but only because I expect to use this expression in many areas in the app. Im assuming a reference to a slice 10 times is ‘lighter’ than a lookup 10 times so please let me know if I am overthinking this.
The other expression mention indeed do not fully work as expected:
The difference is the one space after the comma in the second SPLIT argument. Values in spreadsheet are separated by " , " (Supervisor , Manager , Installer , Courier).
Thanks again for the needed perspective.