write the below code in class or form(A)
Args args;
FormRun formRun;
super();
args = new args();
args.name(formstr(FormBName));
args.record(tablename);// pasing record
formrun = classfactory.formrunclass(args);
formrun.init();
formrun.run();
formrun.wait();
write below code in init method of formB
super();
if(element.args().caller() && element.args().caller().name() == formStr(FormA))
{
tablebuffer = element.args().record();
Table_ds.query().dataSourceNo(1).addRange(fieldnum(table,field)).value(queryValue(table.field));
}
Args args;
FormRun formRun;
super();
args = new args();
args.name(formstr(FormBName));
args.record(tablename);// pasing record
formrun = classfactory.formrunclass(args);
formrun.init();
formrun.run();
formrun.wait();
write below code in init method of formB
super();
if(element.args().caller() && element.args().caller().name() == formStr(FormA))
{
tablebuffer = element.args().record();
Table_ds.query().dataSourceNo(1).addRange(fieldnum(table,field)).value(queryValue(table.field));
}