I have to add some checkbox fields on the report dialog box. Based on the selected checkbox, I have to visible or invisible the report field like on hand inventory report.
Example: Here, I have added the checkbox for site id.
Class declaration:
DialogField fieldSiteId;
Dialog method:
dialog.addGroup(‘View’);
fieldSiteId = dialog.addField(typeid(NoYesId));
fieldSiteId.value(1);
fieldSiteId.label(‘Site id’);
Run method:
public void run()
{
if(any2int(fieldSiteId.value()) == 0)
{
InventSite_InventSiteId.visible(false);
}
super();
}
It is working fine, but my doubt is that is it correct way?
Thanks,
Hari