Hi Friends,
I have an x++ query which comes from some form at run time.
How to find if that query has a particular table as datasource.
Query qr;
qr = new Query(_parmquery);
// I have issue here, the below line always skips as if datasource is not there event when its there
if(qr.dataSourceTable(tableNum(CustTable).existsMeanOrExists())
then add some range
else
something
query.datasource().? what to write here.
I tried enabled and it works only if that tables exists and will through a stack trace error if its not available
query.datasource().enabled()
Please help.
Thanks,
Praveen
*This post is locked for comments