I pass a temporay table from form A :
select * from browsedmenuItemsTmp where browsedmenuItemsTmp.MatrixRole == matrixRole.MatrixID; args.record(browsedmenuItemsTmp); args.parm(matrixRole.MatrixID); args.name(formstr(form B)); formRun = ClassFactory.formRunClass(args); formRun.init(); formRun.run(); formRun.wait();
in the form B , I add the temporary table in datasource and I add this code in the init method of from B:
parmid = element.args().parm(); browsedMenuItemsTmp = element.args().record(); query = new Query(); queryBuildRange1 = query.addDataSource(tablenum(MenuItemTmp)).addRange(fieldnum(MenuItemTmp,MatrixRole)); queryBuildRange1.value(parmid); MenuItemTmp_ds.query(query);
But I don't get any values in the form B