
Hello,
we created a Form with an overwritten init - method.
Within this method we add a new datasource with the name "ANXTMSPackageMeasuringTable1_Filter".
package_DS = ANXTMSTransportOrderWeightMeasurmentInfo_Q.dataSourceNo(1).addDataSource(tablenum(ANXTMSPackageMeasuringTable), 'ANXTMSPackageMeasuringTable1_Filter'); package_DS.relations(true); package_DS.joinMode(JoinMode::NoExistsJoin); package_DS.enabled(false); qbr2 = package_DS.addRange(fieldnum(ANXTMSPackageMeasuringTable, CompletedWeightBy));
We use this code added Datasource within a method for enable and disable this Filter datasources, according to the settings within the form.
Now our customer want to use the query Form and save the query as Cue to use it on the Home / EP - Page.
After clicking the Cue, this error occur.
How can we avoid this exception?
Should we use this data source as "real" Datasource within this form, or is there any other way?
Hi Stefan,
I do think the easiest way to prevent this issue is by adding the data source to the form or create the cue in the AOT.