If you have questions or if you want to share your opinion about Aware IM post your message on this forum
#53162 by ddumas
Mon Feb 17, 2020 4:51 pm
I have a Guest registration that works fine, but I would like to exit the visual Perspective (Logout) after the Guest registers. Right now, the guest user is left with a Visual Perspective still in the browser tab.

I have attached 2 screenshots. (1) where the Guest Visual Perspective shows the first command process that registers a guest, and (2) the actual process that is called.

I have tried a Logout command in the process as the last step, but that does not work.

Ultimately, I would like to close the browser tab.

Dave
Attachments
AddGuest_process.PNG
AddGuest_process.PNG (77.43 KiB) Viewed 2958 times
GuestVP.PNG
GuestVP.PNG (47.29 KiB) Viewed 2958 times
Last edited by ddumas on Fri Feb 21, 2020 3:24 pm, edited 1 time in total.
#53167 by tford
Tue Feb 18, 2020 1:58 am
I had a BSV where I used DISPLAY PERSPECTIVE after DISPLAY MESSAGE so the user sees a message that makes it clear they can close the browser tab.

That was in an older version of Aware. Not sure if there is a better approach now.
#53171 by idpSteve
Tue Feb 18, 2020 11:58 am
This should work- add a new rule after your display message:

EXEC_SCRIPT `AwareApp.logout('logonAdmin.html');`

You'd need to change the 'logonAdmin.html' to the name of the login page for your app if that's where you'd like users to end up..

Let me know!
#53187 by idpSteve
Wed Feb 19, 2020 6:26 am
Sort of.. If you need to enclose a quote in quotes you can use a grave accent for the outside 'quotes' .

So for example:

DISPLAY MESSAGE `Please don't use quotes` works,

DISPLAY MESSAGE 'Please don't use quotes' won't work.
#53245 by eagles9999
Fri Feb 21, 2020 12:11 pm
What if you want to use a dynamic specification for the Login Page. Such as SystemSettings.LoginPage

I expected
EXEC_SCRIPT `AwareApp.logout(`+SystemSettings.LoginPage+`);`
but that does not work.
Tried many variants now and cannot get any to work. Surely something dumb... Has been a long day ;-)

Who is online

Users browsing this forum: johntalbott and 18 guests