security.logout(); modal dialog in webclient

Forum to discuss the Web client version of Servoy.

Re: security.logout(); modal dialog in webclient

Postby udrescu_bogdan » Tue Jul 12, 2011 3:45 pm

I'll try, but after the application.exit(); ill go to the login screen?
udrescu_bogdan
 
Posts: 336
Joined: Fri Jun 18, 2010 3:27 pm
Location: Craiova, Romania

Re: security.logout(); modal dialog in webclient

Postby jcompagner » Tue Jul 12, 2011 3:53 pm

no in my example it will go the the standard choose solution url of servoy.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8047
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: security.logout(); modal dialog in webclient

Postby udrescu_bogdan » Tue Jul 12, 2011 4:00 pm

Many thanks! It finally works! :D

I disabled the servoy.allowSolutionBrowsing and it also jumps directly to the login screen!

for the webclient I do this now
Code: Select all
application.showURL("http://" + host + "/webclient.html", "_top");
application.exit();
:

and for the SmartClient I do this. it might work also without the first 2 lines, but at least I had to put the solution name in the logout method, otherwise I get and exception and the app hangs: "cannot open solution".
Code: Select all
elements.tabsMain.removeAllTabs();
application.closeForm();
security.logout("AeroPlus");


Thanks again!
udrescu_bogdan
 
Posts: 336
Joined: Fri Jun 18, 2010 3:27 pm
Location: Craiova, Romania

Re: security.logout(); modal dialog in webclient

Postby ProRM » Tue Aug 02, 2011 3:43 am

Hi,

I used
application.closeFormDialog(forms.gracias)
application.showURL('http://www.prorm.com', '_top');
application.exit();

And receive
Page Expired

The page you requested has expired.

But then tried with

//application.closeFormDialog(forms.gracias)
application.showURL('http://www.prorm.com', '_top');
application.exit();

and worked fine.

Regards,
User avatar
ProRM
 
Posts: 49
Joined: Thu Sep 18, 2008 10:24 pm
Location: Uruguay

Previous

Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 3 guests