X++:
public void init()
{
    //InventPrintLabel2   InventPrintLabel2;
    ;
    super();
    InventPrintLabel2 = element.args().caller();
    if (!InventPrintLabel2)
        throw error(Error::missingRecord(funcName()));
    //if (element.args().parmEnum() == ReportDesigns::form1)
    if (InventPrintLabel2.parmReportDesignsId() == ReportDesigns::form1)
        this.design('ReportDesign1');
    if (InventPrintLabel2.parmReportDesignsId() == ReportDesigns::form2)
        this.design('ReportDesign2');
    InventPrintLabel2.queryRun().setRecord(InventPrintLabel2.initTmpInventPrintLabel());
}