Change default visibility of a column [message #580313] |
Fri, 09 April 2010 12:32 |
|
I have a table page that is shown below a project and on its own. When shown below a project, I want the country column to be invisible:
@Override
public void execInitPage() throws ProcessingException {
getTable().getCountryColumn().setVisible(getProjectNr()==nul l);
}
My problem was that hitting the reset menu from the column headers will revert the column to its default configured state (ie. the visible property of the column) ignoring the code in execInitPage.
What is the recommended practice in this situation?
Right now I use the following on the column level in addition to the above:
@Override
public boolean getConfiguredVisible() {
return getProjectNr()==null;
}
The SDK shows this as "Unaccepted value!" but it works. :)
|
|
|
Powered by
FUDForum. Page generated in 0.03202 seconds