Hi All
I have a requirement wherein I had to dynamically link a table recid with another table column as a foreign key relationship for displaying it in the form grid. I added the parent table(PurchTable) and the child table(GMD_Transactions) to the datasources of the form and wrote the following code to join them
queryBuildDatasource=PurchTable_ds.query().dataSourceTable(tableNum(PurchTable)).addDataSource(tableNum(GMD_Transactions));
queryBuildDatasource.joinMode(JoinMode::OuterJoin);
queryBuildDatasource.relations(false);
queryBuildDatasource.addLink(fieldNum(GMD_Transactions, RowID),fieldNum(PurchTable, RecId));
But it doesn't seems to work.Can someone enumerate the steps and as well as share some code. ?
Regards
Suresh