hello..
i added a new dataSource in PurchLineOpenOrder Form
so , i want to create a new relation from PurchLine to EcoResProduct
in init() method i added next lines , maybe the code is wrong !!
void init()
{
QueryBuildDataSource purchLineQbds,ecoResProductQbds;
Query query = new Query();
purchLineQbds = query.dataSourceTable(tableNum(PurchLine));
ecoResProductQbds = purchLineQbds.addDataSource(tableNum(EcoResProduct)); //line 7
ecoResProductQbds.joinMode(JoinMode::InnerJoin);
ecoResProductQbds.relations(false);
ecoResProductQbds.addLink(fieldNum(PurchLine, ItemId), fieldNum(EcoResProduct, DisplayProductNumber));
super();
but when form run the next error displayed
QueryBuildDataSource object not initialized.
Stack trace
(C)\Forms\PurchLineOpenOrder\Methods\init - line 7
(C)\Classes\SysSetupFormRun\init - line 3
*This post is locked for comments
I have the same question (0)