Hi,
I suppose I have two questions. The first is, how can I view the app and troubleshoot from a userโs perspective? The โPreview asโ in the simulator does not appear to work for me. I cannot find any documentation about this.
The second question is related to my specific issue here. We have two tables (parent-child) called consults and referred_to that are referenced. I want the user to see any data in consults where their user ID is in the AssociateID column on that table. Or if their user ID is in the AssociateID column on the referred_to table. So in practical terms they can see their own consults as well as consults being referred to them.
I have this security filter on the consults table:
IF(USERSETTINGS(โMy Consults Onlyโ),
OR(
[referred_by]=USERSETTINGS(โUserIDโ),
IN([consult_id],
SELECT(referred_to[consult_id], [AssociateID] = USERSETTINGS(โUserIDโ))
)
),
TRUE)
And I have one view of Waitlisted consults that is shown in a slice with this filter:
AND([AssociateID]=USERSETTINGS(โUserIDโ),[Referral Status] = โWaitlistedโ)
My challenge is that this all works fine for me as an Admin user but it does not work for my non-admin users. Using a SQL query on the database I can determine that there should be data showing for my users.
Thanks for any tips/ideas!
Short of logging in as the user, there is no good way to do this.
I have a users table that holds pertinent data related to each user. Iโm still in prototype mode. So, I switch the data associated with my email to reflect the different users. It is not the optimum way but has allowed me to catch some errors I might have missed.
To clarify, on my record in sheets, I add two letters before my email address to make it not match my USEREMAIL(). Then I add my self, using the add new user form in the app and set my self up as the user I want to test. So from that point on, I am that โclassโ I want to test. After testing, I then add letters before my email address, so I can use it easily again for further test, and remove the letters I had added to my original record. FYI, I often have to close the editor tab and come back in fresh for the emulator to actually read all my โnewโ data. One benefit of doing it this way, is I can test it on each of my devices since I am, essentially, a new user of a certain โclassโ I need to test.
What I really need is multiple devices, each with a separate login, to represent each of the โclassesโ of users. I have 11 different โclassesโ of users, so that wonโt happen. My next step, is to recruit co-workers to beta testers, representing one โclassโ at a time.
have you tried the switch function?
User | Count |
---|---|
15 | |
12 | |
9 | |
8 | |
4 |