I have created a form which has AccountingDistribution, PurchTable and PurchLine in datasources, AccountingDistribution will be the primary table, when I try to add a link on PurchTable using addLink in the init method of PurchTable DS, it gives me an error as “The data source is not embedded within a (parent) data source.” The syntax I have used is
PurchTable_ds.query().dataSourceTable(tableNum(PurchTable)).addLink(fieldNum(PurchTable, SourceDocumentHeader), fieldNum(AccountingDistribution, SourceDocumentHeader));
My purpose is to link
AccountingDistribution and PurchTable on SourceDocumentHeader column and
link AccountingDistribution and PurchLine on SourceDocumentLine column
Could anyone please help me achieve this…
Your help is very much appreciated.