First of all create 2 or more than 2 menu items of report.
Drag-Drop on form design, wherever you want them.
then, write code in INIT method of report:
public void init()
{
super();
if(element.args().menuItemName() == menuitemOutputStr(OrderCollection))
//Order Collection is Menuitem name of report
{
element.design("ReportDesign1");//Generated design 1
}
else
{
element.design("ReportDesign2");//Generated design 1
}
}
No comments:
Post a Comment