1
Formula producing different results in different places
complete
E
Erin Wagner
- When a user refreshes their browser, all their data is lost.
- If appVars.current_user.id is empty (ie, they refreshed their browser), I want to send them to the login page.
- I put that logic (appVars.current_user.id==null || appVars.current_user.id==0 || appVars.current_user==undefined, send to page accordingly) on every page.
- It worked a year ago when I built it. I paused development for a year. It does not work now.
- To bug test, I tried to understand what value was being used for appVars.current_user.id.
- In one place (the login page) I put loads of ways of assessing it and found that appVars.current_user.id==0 was TRUE.
- But when I refresh, the logic executes as though appVars.current_user.id==0 is FALSE.
This refresh issue is one of the very last things I need to fix before launching my beta. Hope you can help me figure out why the logic isn't working correctly!
App 173781. Let me know what email address to send login credentials to.


Log In
T
Timo Kapanen
complete
T
Timo Kapanen
Hi Erin Wagner, we have published a fix for https://appgyver.canny.io/bug-reports/p/boolean-variable-false-or-number-variable-zero-values-are-reported-as-a-null-val
in preview 4.6.11. Let us know if it helps solving this issue. Best Regards, Timo Kapanen
E
Erin Wagner
Timo Kapanen: It's working now! Thank you so much!!
T
Timo Kapanen
Erin Wagner: great news, thanks for confirming!
E
Erin Wagner
Timo Kapanen The plot thickens. The logic is now working on the page "My Account" but is not working anywhere else.
I tried removing and re-adding the node on the "My Schedule" page just in case that triggered it into working, but no change.
E
Erin Wagner
Timo Kapanen I just emailed you credentials.
Here are the steps you can take to replicate the bug.
- Use the instructions from the email to log in.
- Click the "account" icon in the upper right hand corner.
- Note how your user info is populated.
- Refresh the browser.
- Note how you are not redirected to the page like you should be.
I will add a field to the "account" page that shows appVars.current_user.id so you can easily see whether the value is 0, null, undefined, whatever. I will also add some additional clauses to the IF statement so that it should redirect regardless of what form of "empty" the value is.
Hopefully those steps will help us accelerate the troubleshooting process.
T
Timo Kapanen
under review
T
Timo Kapanen
Hi Erin Wagner, you can send the login credentials for me (timo.kapanen@sap.com). Thanks