giving element-name to group

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

giving element-name to group

Postby Harjo » Mon Nov 10, 2003 9:50 am

I would be handy to group elements and than the possibility to give it an element-name.

So you can enable/disable, visible/non-visible the group in just one row method:

elements.groupname.visible = true
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby Jan Blok » Mon Nov 10, 2003 3:38 pm

It's possible to make an array in javascript, add all the elements to that array and a global method to handle the array to set all the elements visible for example
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby DFehrenbach » Mon Nov 10, 2003 5:17 pm

How do you assign form elements (fields/buttons/portals) to the array elements? Do you mean that the method will only create the array and the form elements are named as array elements?
Could you please give a short example?
DFehrenbach
 
Posts: 252
Joined: Sat Sep 13, 2003 6:48 pm
Location: Cleveland, OH

Postby maarten » Mon Nov 10, 2003 8:57 pm

myElementgroup = new Array(); //create an Array that will be filled with a group of elements

myElementgroup[0] = elements.myField1;
myElementgroup[1] = elements.myField2;
etc..

//set the element group to visible
for(var i=0;i<myElementgroup.length;i++)
{
myElementgroupName1[i].visible = true;
}
Maarten Berkenbosch
User avatar
maarten
 
Posts: 797
Joined: Wed Apr 23, 2003 10:52 pm
Location: Amersfoort, Netherlands

Postby axterics » Fri Feb 16, 2007 12:40 pm

searching for the solution of this problem I found this old post.
Yes you can hide all the element grouping by elements.name or using a tabpanel but it is not so handy...

request++ for me
axterics
 
Posts: 122
Joined: Wed Feb 07, 2007 9:44 am
Location: Verona, Italy


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 9 guests