IDEMPIERE-270 Reports should inherit search filter from window - fix all columns check box visibility logic

This commit is contained in:
Elaine Tan 2012-09-10 12:30:04 +08:00
parent ab31be0c56
commit 3c2f1a9ee4
1 changed files with 6 additions and 1 deletions

View File

@ -104,7 +104,12 @@ public class ReportAction implements EventListener<Event>
chkAllColumns.setLabel(Msg.getMsg(Env.getCtx(), "AllColumns")); chkAllColumns.setLabel(Msg.getMsg(Env.getCtx(), "AllColumns"));
chkAllColumns.setSelected(false); chkAllColumns.setSelected(false);
chkAllColumns.setVisible(false); li = cboPrintFormat.getSelectedItem();
if (li != null && li.getValue() != null)
{
int AD_PrintFormat_ID = Integer.valueOf(li.getValue().toString());
chkAllColumns.setVisible(AD_PrintFormat_ID == -1);
}
Vbox vb = new Vbox(); Vbox vb = new Vbox();
vb.setWidth("100%"); vb.setWidth("100%");