Hello,
I have a problem with a first screen on my app.
I have on this screen a toggle that allows to start admin context and this changes button/labels in whole app.
This works very good, but I have a problem with toggle visibility. For a split second during app loading it is visible for users. After that it becomes invisible. So users can see it for a brief time.
I tried using timers and also blocking it with same color rectangle. Little improvement was visible but that's, all.
Fast user can use this toggle even if he is not authorized....
Here are functions:
Toggle Visible:
!IsBlank(LookUp(ListaAdmin,'Dane administratora'.Email=gblUserEmail)) && varTimer1=true
This check whether user is on Sharepoint list and if Timer is finished.
Toggle Check:
Set(varAdmin,true)
This is variable that set context of app for admin.
UnCheck sets in on false.
Timer onTimerEnd:
Set(varTimer1,true)
Timer has a setting autostart ON
In app on start I have this setting to reset variables:
Set(varAdmin,false);Set(varTimer1, false)
Rectangle that I added has visible settings:
varTimer1=false
This is a critical cause fast user can be admin ;( Maybe button blocking will help, but it still will be visible for a split second...
Is there any workaround?
Maybe copying this screen and setting timer to navigate to same screen but with this functions? That will give some time to load. But will it look good? There will be a blink for users...