【问题标题】:Retrieving queries from webI reports in Business Objects从 Business Objects 中的 webI 报告中检索查询
【发布时间】:2011-04-28 07:05:51
【问题描述】:

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

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

问候, 日后

【问题讨论】:

    标签: business-objects business-objects-sdk


    【解决方案1】:

    我假设您知道如何通过 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() 已被贬值,因此它可能会在下一个版本中消失

    【讨论】:

      猜你喜欢
      • 2016-02-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-22
      • 1970-01-01
      • 2016-12-16
      相关资源
      最近更新 更多