A few weeks ago, during the Alpha Anywhere Webcast 2020 April 15, they discussed a Tabbed UI replacement. It is an entire UX that has panel cards. One panel is for login(Panel Card Login), and after login, it calls a different panel (Panel Layout 1). After login, you have access to the menu you created. Its really nice.
The problem is, all security is loaded when the UX is loaded. Then after login, there is no UX reload, so the security is not refreshed. If you force a refresh, it takes you back to the login.
Static info: My menu has security groups. Under Menu is Customers and Shipping. "userS" has access to "Shipping" and "Customers." "userC" has access to "Customers" only. So under the menu, Customers has no security, but Shipping is by Security Group only. "userS" is part of that security group and "userC" is not.
Page loads. "userS" logs in. Login triggers Panel Layout 1. Menu and Customers are the only thing showing. No Shipping. Why? Because the UX was loaded before the login. Logging in only moves from one view to the other; not reload the UX. If I refresh the page, I'm back at the login. I login as "userS" again, and Shipping appears on the menu. Why? Because the security was cached. If I hit refresh again, the login appears, I login as "userC" and Shipping is still there. Why? Because the cached information was for "userS" and there is no reload of the Panel Layout 1 after login. If "userC" clicks on Shipping, the page has a seizure (because "userC" isn't authorized), and the logout action happens, and back to the login screen. Now I need to login again.
I have tried an e.url = <thisComponent>, however any reloading of the page brings the login back to the forefront.
Is there a way to refresh the Panel Layout 1 to get the newly loaded userRoles before it is shown so the menu displays appropriately for the logged in user?
Thanks in advance.
Alpha 12 Build 6655
The problem is, all security is loaded when the UX is loaded. Then after login, there is no UX reload, so the security is not refreshed. If you force a refresh, it takes you back to the login.
Static info: My menu has security groups. Under Menu is Customers and Shipping. "userS" has access to "Shipping" and "Customers." "userC" has access to "Customers" only. So under the menu, Customers has no security, but Shipping is by Security Group only. "userS" is part of that security group and "userC" is not.
Page loads. "userS" logs in. Login triggers Panel Layout 1. Menu and Customers are the only thing showing. No Shipping. Why? Because the UX was loaded before the login. Logging in only moves from one view to the other; not reload the UX. If I refresh the page, I'm back at the login. I login as "userS" again, and Shipping appears on the menu. Why? Because the security was cached. If I hit refresh again, the login appears, I login as "userC" and Shipping is still there. Why? Because the cached information was for "userS" and there is no reload of the Panel Layout 1 after login. If "userC" clicks on Shipping, the page has a seizure (because "userC" isn't authorized), and the logout action happens, and back to the login screen. Now I need to login again.
I have tried an e.url = <thisComponent>, however any reloading of the page brings the login back to the forefront.
Is there a way to refresh the Panel Layout 1 to get the newly loaded userRoles before it is shown so the menu displays appropriately for the logged in user?
Thanks in advance.
Alpha 12 Build 6655
Comment