Thanks to World War I, it's week-end over here, and probably to remember how tough it was for soldiers on these years, its cold and heavy raining!
So, I'm sending some time looking at nested tables.
Purpose: reduce the display space of a table containing arrays!
The standard table component in the reporting collection produces nice, but large tables such as the one below.
The idea is to collapse arrays into nested tables and let the end user uncollapse/collapse those while browsing the page.
The "collapsable nested table" let the protocol designer chose which properties to group in the nested table and provides plus/minus tiny icons to uncollapse/collapse individual tables.
Thats all folks! Waiting for improvement of yours.
Pierre

I like it.
However, I need one that can be re-used for multiple embedded tables and other report elements (eg images). {one per column in a single table}
Attached is a PLP v8.0 protocol with my initial stab at it. The image below shows the output with one cell expanded for each column.
I changed Pierre's component to produce a "column" report item and modified the overall protocol to show how to (re)use it.
To be able to reuse the component for multiple columns, all HTML objects (javascript functions, DIV, table names, etc.) need a unique identifier. Uniqueness is done by adding a UID to what Pierre has already done. (just make sure your @uid is a "local variable".) I'm pretty sure their is a better way to 'calculate' a unique string beyond "@uid := string( floor( Rand() * 1000 ) );". I recommend a unique alphanumberic string with a length between 8 and 12 characters long.
Please note that the sub-protocols are nowhere near comlete as many of the "configure display options" are not at the top-level.
Hi, nice improvement indeed!
One way to avoid random UID would be to set it as a sub protocol parameter: "Nested Table Name" checking non space containing names.
I just posted a generalized component based on your idea that should take any type of reporting element and add the collapse/expand behavior. Let me know if you have any comments or suggestions. Thanks!
https://community.accelrys.com/thread/5198