Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Table Component - Expand on Click property

$
0
0
Hi folks :) ,
I've a problem in the creation of multiple table nested:
I would like to create a summary table where you can click on it to Expand and see the sum splitted by one of the values of the table and again click in the new table to expand and show the details splitted by another value.
My problem is that after accomplished the first step I can not expand anymore the tables.

Here's how I did it (maybe it helps someone):
first I create 3 HTML Object for my 3 tables. I hid the last 2 with the css.
then I create 3 table component: table1, table2, table3.
the first (the one with al the totals) has
Code:

Expand on Click: True
Expand container Object: <HTML Object of the second table>
Expand Parameters: <idx_column>, <parameter>

The second table has the same attributes with different container object and parameters.

With this if I click on the first table, it takes the value in the column "id_coumn", assigns it to the "parameter" and expand the table with the sub-table.

But here are the problems :(:
- At the first click on the table1, it creates 2 sub-tables2 nested, the first empty with 0 of 0 entries and inside it the second with all the entries.
If I click on another row this problem disappear. But if I click two times on the same row (to make the sub-table2 disappear) the problem appears again on the next click. There's a way to eliminate this annoying effect?

- And than all the properties of the sub-table2 are erased: background color, width, etc, and (of course) the expand on click.
How can I make the sub-table2 keep all his attributes?? (or make it expandable on click at least?)

I don't know if I was clear :confused:, sorry
and thanks :)

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>