column not showing

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

column not showing

#1

Postby HarryDeBoer » Thu Mar 20, 2014 8:41 am

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?
0 x
Kind regards,

Harry

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Thu Mar 20, 2014 9:42 am

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
0 x

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

#3

Postby HarryDeBoer » Thu Mar 20, 2014 10:32 am

Hi Jon,

the word ALL did it! Thanks
0 x
Kind regards,

Harry


Who is online

Users browsing this forum: No registered users and 6 guests