How DDS Converter converts a multi-line subfile

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
UPI
Profound User
Posts: 30
Joined: Wed Jun 30, 2010 1:37 pm
First Name: Thomas
Last Name: Garvey
Company Name: Unbeaten Path International
Country: United States
Contact:

How DDS Converter converts a multi-line subfile

Post by UPI »

Can you explain why the DDS Converter creates a grid with a single column when converting a subfile? Seems like many of the features available for subfiles are automatically excluded this way (like sortable columns).
Also, I've tried to duplicate the collapse/expand technique that is automatically included when the DDS Converted converts a multi-line subfile. I've been unsuccessful because the entire width of the subfile line I design is being displayed. Can you provide an example, or step by step instructions, to get this to work? I know it doesn't take any changes to my RPG code to get it working.
Greg
Profound User
Posts: 27
Joined: Thu Dec 02, 2010 1:27 pm
First Name: Greg
Last Name: Sears
Company Name: Profound Logic
Phone: 937-439-7925
Address 1: 562 Congress Park
City: Dayton
State / Province: Ohio
Zip / Postal Code: 45459
Country: United States
Contact:

Re: How DDS Converter converts a multi-line subfile

Post by Greg »

The DDS converter will create multiple columns for single line subfiles only. For multiline subfiles, the data within the rows may not line up into perfect columns and therefore, the DDS conversion creates a single column only.

The following is a step-by-step process to follow for creating a collapsible subfile:

1. Set the “row height” property to match the expanded state of the subfile
2. Set the “fold multiple” property to 2, 3, or 4 for instance, when the value is set to 3, the row will be one third of its height when collapsed.
3. The “expanded” or “collapsed” properties indicate whether the subfile is initially expanded or collapsed. These properties can be bound to an indicator.

Then, add a button or image icon for collapsing/expanding the subfile. This element will need an onclick event that uses one of the following API’s:

1. getObj(“MYSFL”).grid.expand()
2. getObj(“MYSFL”).grid.collapse()
3. getObj(“MYSFL”).grid.toggle()

Where MYSFL is the ID of the subfile grid.
Post Reply

Who is online

Users browsing this forum: BrianRees and 3 guests