Goto form defined by a Global

Questions, tips and tricks and techniques for scripting in Servoy

Goto form defined by a Global

Postby Stef » Wed Jun 18, 2003 12:18 pm

Hi all,

I want to make a method to go to a form defined in a variable.

I defined a global field called "globalform". I want to go to that form filled in this field.

Is this possible?

Something like:

forms.globals.globalform.controller.show();

Best Regards,
Stef
Stef
 
Posts: 208
Joined: Wed May 28, 2003 2:19 pm
Location: Kasterlee, Belgium

Postby maarten » Wed Jun 18, 2003 2:13 pm

Hi Stef,

I think this is what you want:


forms[globalform].controller.show()

(also check Methods>Flexible javascript in this forum)
Maarten Berkenbosch
User avatar
maarten
 
Posts: 797
Joined: Wed Apr 23, 2003 10:52 pm
Location: Amersfoort, Netherlands

Postby Guest » Wed Jun 18, 2003 2:36 pm

Great! It works!

Thanks Maarten.

BR
Stef
Guest
 


Return to Methods

Who is online

Users browsing this forum: No registered users and 9 guests

cron