Hi Techies,
I want to enable/disable a dynamically added data source in a code at a particular condition. If the values of the fields(FromDate and ToDate) are blank then it should be disabled else it should enable. I tried doing this ->qbds.childDataSourceNo(2).enabled(true); but it is showing error - 'Query does not contain 2 datasources'
Below is my code
QueryBuildDataSource qbds = ds.addDataSource(tableNum(LedgerJournalTrans)); qbds.relations(true); qbds.joinMode(JoinMode::ExistsJoin); qbds.addRange(fieldNum(LedgerJournalTrans,TransDate)). value(strFmt('%1..%2',formRun.parmFromDate(),formRun.parmTodate()));
Can anyone help me here,
Any response is appreciated!
Thanks
*This post is locked for comments