pass parameter in formA
public void addColor()
{
Args args = new Args();
FormRun formRun;
;
if(ItemIdEdit.valueStr())
{
args.name(formStr(GAR_AddColor));
args.caller(element);
args.record(InventTable::find(ItemIdEdit.valueStr()));
args.parm(FinalBuyerEdit.text() + "," + LabelEdit.text() + "," + SeasonEdit.text());
formRun = ClassFactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.wait(true);
}
else
{
throw error("select item first!");
}
}
get parameter in FormB
if(element.args().parm())
{
callerFormRun = element.args().caller();
if(callerFormRun.name() == formStr(GAR_MaterialCreateForm))
{
salesPipeLineStr = element.args().parm();
salesPipeLineCon = str2con(salesPipeLineStr, ",");
if (conLen(salesPipeLineCon) >= 3)
{
TEX_BAS_FinalBuyerCode.text(conPeek(salesPipeLineCon, 1));
TEX_BAS_LabelId.text(conPeek(salesPipeLineCon, 2));
TEX_BAS_SeasonCode.text(conPeek(salesPipeLineCon, 3));
}
}
}