Parent form

Questions, tips and tricks and techniques for scripting in Servoy

Parent form

Postby Hans Nieuwenhuis » Wed Mar 14, 2012 12:36 pm

Hi,

If on form A that is displayed in a tab of form B, can I get the name of form B in a method ?

Regards,
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: Parent form

Postby ROCLASI » Wed Mar 14, 2012 12:44 pm

Hi Hans,

You can call controller.getFormContext() on form A. This will return a dataset with the structure all the way to the main controller (top form).

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Parent form

Postby Hans Nieuwenhuis » Wed Mar 14, 2012 2:18 pm

Thanks !!

That's what I was looking for.
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands


Return to Methods

Who is online

Users browsing this forum: No registered users and 12 guests