how to refer to a field on a tabpanel form

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

how to refer to a field on a tabpanel form

Postby gstein » Sat Sep 04, 2004 12:19 pm

I need to retrieve a value from a field on a tabpanel form called panels.

The main form that the tabpanel is on is called people.
The name of the tabpanel is tabs_people
The name of the tab is tabPanels

I have tried

forms.people.elements.tabs_people.panels.id_projects

and

forms.people.elements.tabs_people.tabPanels.id_projects

but neither work.
gstein
 
Posts: 210
Joined: Tue Jul 27, 2004 2:38 pm

Postby IT2Be » Sat Sep 04, 2004 12:33 pm

I don't really understand what you are doing but I think I understand what you want to do.

You want to retrieve a value from a field on a certain form (that is placed in a tabpanel on another form).
And, you want to retrieve that value from within another form. Right?

If so you know the dataprovider of that field. Right?

If so, you can do
Code: Select all
var value=forms.formname.dataprovidername


If you want to get a value from the text property of an element (it it has one), you have to give that element a name! After you did that you can do:
Code: Select all
var value=forms.formname.elements.labelname.text


Hope this is what you were looking for.
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 34 guests

cron