0

是否可以使用 SDK 从业务对象中的报告中检索 SQL 查询。

任何教程或代码都会很有用。

问候,尼森

4

1 回答 1

0

我假设您知道如何通过 Java SDK 获取 WebI DocumentInstance 对象。

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() 已贬值,因此它可能会在下一个版本中消失

于 2011-04-29T14:50:09.210 回答