BIRT Data Engine [message #1753430] |
Mon, 06 February 2017 11:32 |
David Good Messages: 41 Registered: September 2012 |
Member |
|
|
Hi,
I am attempting to gather a .rptdesign query using the data engine.
I am referencing the design and data set. I can get the query text using the following:
private String getDSQuery(IReportRunnable runnable) throws BirtException {
ReportDesignHandle designHandle = (ReportDesignHandle) runnable.getDesignHandle();
DataSetHandle dset = designHandle.findDataSet(DATA_SET);
return (String) dset.getProperty("queryText");
}
This is fine but when the query is more dynamic and uses either the data set's beforeOpen method or data set's property binding to create SQL on the fly the getProperty("queryText") does not execute the scripts first.
I am guessing that I need to use a run task or similar first??
Can someone who has handled this task before please point me in the right direction?
Many thanks,
David
|
|
|
Powered by
FUDForum. Page generated in 0.02255 seconds