I’m currently trying to build a query that uses a datasource based on a particular condition being true. Say “if value == 1, use datasource 1. If value == 2, use datasource 2.
These tables are already a couple of levels into my datasources.
Haven’t been able to find info on this anywhere!
You did not specify the tables and relations, but using these datasources as an example:
Suppose you want to exists join on either
CustTransorCustInvoiceJour?This can be accomplished by enabling and disabling the corresponding datasources:
This should be done before
super()in theexecuteQuerymethod of theCustTabledatasource.