Using onload event to move a Field Set position

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
Shon
Profound User
Posts: 27
Joined: Wed Dec 14, 2011 12:25 pm
First Name: Shon
Last Name: Malone
Company Name: Summit
Phone: (863) 668-7657
Address 1: 2310 Commerce Point Drive
City: Lakeland
State / Province: Florida
Zip / Postal Code: 33801
Country: United States
Contact:

Using onload event to move a Field Set position

Post by Shon »

I have a display with both a subfile grid and about 30 additional fields below the grid. I'm using an onload event to change the number of rows in the grid. All the fields below the grid are part of a field set. When I move the field set in designer, all the fields move with it. I added another onload event to change the 'top' value of the field set, because I need all the fields below the grid to move up based on the bottom of the grid (number of rows). When I run it, the field set moves, but all of it's fields remain in their originally designed locations. I thought that the whole purpose of the field set was to group fields relative to one another and the field set. Am I doing something wrong? Do I need to try another container? I am not using tab panels. Thanks for any help.
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Using onload event to move a Field Set position

Post by David »

Unfortunatley, the field set widget is not a 'true' container -- meaning that the runtime rendering does not place the widgets inside the field set component. Rather 'on top'.

That said, we have implemented 'true' containers in recent releases. Try putting the field set and all other components inside of a 'simple container layout' (found under Layouts category in the toolbox).

This is a real container that the items will render into. If you hide/move/etc. it, the contained items will go along with it.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests