Discussion:
Hide a column on a report based on dialog criteria
(too old to reply)
Lauren
2010-09-28 20:06:03 UTC
Permalink
I am trying to hide a column if the selected criteria is not used. I am using
the following code:

display CategoryName categoryName()
{
CategoryTable categoryTable;
;
if (tmpProjTransList.Level2)
{
return (select categoryTable
where categoryTable.CategoryId ==
TmpProjTransList.CategoryId).categoryName;

}

}

How do I get the column to hide if level2 is not selected? And more
specifically, I need level 2 when level 2 is = category.
AX Helper Colombo
2010-09-30 11:20:03 UTC
Permalink
You can hide the column by setting visible = false for the control in the
method ExecuteScetion() of the report element (i.e. Body, Header, Footer,
ProgrammableSection)

Ex:
public void executeSection()
{
if(level == 2)
{
Control.Visible(false);
}
super();

}

Loading...