Problems with showForminDialog

Using Servoy to administrate the content of your website? Discuss all webrelated Servoy topics on this forum!

Problems with showForminDialog

Postby andres_achiary » Wed Nov 26, 2008 5:39 pm

hi, all

Im starting develop a solution for web client and i found a problem with the showForminDialog.

I have a form that calls this function and the client has to choose between two options (obviously one button each). Each button saves the answer in a global variable and then closes the form dialog. In the onHide event of the form in dialog i have a method that, depending of the option the client chose, shows one form or another. The problem is that i want the form to be shown in the "principal" window (not in the dialog), but it shows in the dialog. Is there a way to tell Servoy to show the form in the "principal" window not in the dialog???

thank you very much

Andres

pd: hope you understood
andres_achiary
 
Posts: 31
Joined: Tue Aug 19, 2008 5:19 pm

Re: Problems with showForminDialog

Postby Joas » Wed Nov 26, 2008 7:45 pm

In your onHide method, use:
Code: Select all
application.showForm(form_name);
to show the form.
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL

Re: Problems with showForminDialog

Postby andres_achiary » Thu Nov 27, 2008 2:26 pm

thank you Joas, that was it... i thought that was the same as controller.show, but i see its not

Andres
andres_achiary
 
Posts: 31
Joined: Tue Aug 19, 2008 5:19 pm


Return to Web Development

Who is online

Users browsing this forum: No registered users and 4 guests