Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Iterate over table columns in script
Migrateduser
Hi,
I'd like to hide rows in my table which are entirely empty. As there seems to be no standard solution for this (like an option in the property editor) I thought of doing this via a script. So what I want to do is:
For each row:
1. Iterate over all columns of a table
2. Test if current cell is empty
3. If all cells are empty, hide the row
Is there a better way to do this? I already tried adding code to the onCreate method of a table row (get the row data via this.getRowData(), then the column count and column values via this.getRowData().getColumnCount(), however, this only let me iterate over all bindings and not over table columns) but this did not work.
EDIT: Btw, I expected that when I add this.getRowData().getColumnValue(this.getColumn()) to the onCreate method of a cell I would retrieve the current value of this cell...but this does not seem to work. How do I get the value of a specific table cell using indices?
Find more posts tagged with
Comments
There are no comments yet