I have two form. I.e. FormA and FormB. In FormB is attached with a view. [we have used multiple table relations so I use view]
When I select FormA Record on button click then its related data it has shown on FormB. But Problem is that is shown FormB all record views [FormB view is Problem]
So I know that code pass argument one form to another but I didn’t find How is open two form on one click [related record on FormB and FormB View with all Record]. I want to open only one formB with related record
**FormA Click Method
void clicked()
{
Args args;
FormRun formRun;
super();
args = new args(formstr( FormB));
args.parm(HcmWorkerTB.PersonnelNumber);
formRun = classFactory.formRunClass( args );
formRun.init();
formrun.run();
formrun.wait();
formRun.detach();
}
** FormB Init Method
public void init()
{
Query query;
QueryBuildRange qbr;
Str _parmid;
super();
_parmid = element.args().parm();
query = new Query();
qbr=query.addDataSource(tableNum(ST_BankInfoTableView)).addRange(fieldNum(ST_BankInfoTableView,PersonnelNumber));
qbr.value(_parmid);
ST_BankInfoTableView_ds.query(query);
}