Question

Is it possible to retrieve the SQL queries from a report in business objects using the SDK.

Any tutorials or code would be useful.

regards, nithen

Was it helpful?

Solution

I'll assume you know how to get a WebI DocumentInstance object via the Java SDK.

DocumentInstance docInst; // get your DocumentInstance object via preferred route
DataProvider dp = docInst.getDataProviders().getItem(0); // retrieve the DataProvider that you would like the SQL for
String sql = dp.getQuery().getSQL(); // the SQL out of the DataProvider

getSQL() is depreciated so it may vanish in the next version

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top