Hi,
I want to show/hide a column based on a value.
tables.M_CAMPAGNEBERICHTREGEL.DISPLAY_TYPE.columnControl.setHidden(!isActive);
log('## hidden? ' + tables.M_CAMPAGNEBERICHTREGEL.DISPLAY_TYPE.columnControl.hidden);
in the log the value is FALSE, so the column is expected to be shown, alas it is not. What can be the causes for that?
column not showing
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 118
- Joined: Tue Oct 23, 2012 7:01 am
- Location: The Netherlands
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Harry,
I'm not sure what you are expecting. If you hide a table column in this way and the table contains data, the hide command is interpreted as a request to blank out the cell value on the current row i.e. not show it, but it doesn't hide the entire column. If you want to hide the entire column (i.e. all rows), you need to issue column.all.setHidden().
It isn't very clear in the API documentation that this is how it works. The only documentation on this that I can see is the 'Programming with Tables' page: Help > Table Concepts > Table Scripting. Then see hiding/showing at both cell and column level.
Regards
Jon
I'm not sure what you are expecting. If you hide a table column in this way and the table contains data, the hide command is interpreted as a request to blank out the cell value on the current row i.e. not show it, but it doesn't hide the entire column. If you want to hide the entire column (i.e. all rows), you need to issue column.all.setHidden().
It isn't very clear in the API documentation that this is how it works. The only documentation on this that I can see is the 'Programming with Tables' page: Help > Table Concepts > Table Scripting. Then see hiding/showing at both cell and column level.
Regards
Jon
0 x
-
- Ebase User
- Posts: 118
- Joined: Tue Oct 23, 2012 7:01 am
- Location: The Netherlands
Who is online
Users browsing this forum: No registered users and 3 guests