Hello everybody,
I've been trying for weeks to adding my view in AOT (ANW_GRUvwInventSum) with the SalesLine table. The challenge here is, that I had to have included the VIEW as a DataSource in the form. I've included the code so maybe you can understand, what I'm talking about. I am currently getting the error message that the DataSource object cannot be initialized. Does anyone have a solution for this? Many thanks in advance
public void init()
{
QueryBuildDataSource oQBDS1, oQBDS2;
Query oQuery = new Query();
;
oQBDS1 = oQuery.dataSourceName("dsANW_GRUvwInventSum");
oQBDS2 = oQBDS1.addDataSource(tableNum(ANW_GRUvwInventSum));
oQBDS2.joinMode(JoinMode::InnerJoin);
oQBDS2.relations(false);
oQBDS2.addLink(fieldNum(SalesLine, ItemId), fieldNum(ANW_GRUvwInventSum, ItemId));
super();
}
