Quantcast
Channel: SCN : Popular Discussions - Java SDK Application Development
Viewing all articles
Browse latest Browse all 1701

SDK Java BO XI - How to get schema, table, columns details used in report?

$
0
0

Hi All,

in BO XI R3, we have about 3000 documents of different type of report webi and full client and we need to write a .JAVA program that displays the reports and data source details (schema, table, columns).

I've found Dave Rathbun's "ObjectsUsed" macro at http://www.forumtopics.com/busobj/viewtopic.php?t=16473

and was able to implement the same functionality in .JAVA.

How can I retrieve objects used in WebI and CrystalReport reports? Is this possible at all?

I tried to use Java SDK, but the DataSource return a little information. Can anyone suggest anything?

Thanks in advance.

 

I use the search pattern method instead of sql query language

 

http://devlibrary.businessobjects.com/businessobjectsxir2/en/en/BOE_SDK/boesdk_java_dg_doc/doc/boesdk_java_dg/HowToExamples50.html#514179

 

 

IInfoStore infoStore = (IInfoStore) getEnterpriseSession().getService("InfoStore");

int propertySet = IInfoObject.PropertySet.ALL;

SearchPattern searchPattern = new SearchPattern();

searchPattern.setObjectKind(CeKind.WEBI);

SortType sortType = new SortType();

sortType.addSortDimension(ISortDimension.NAME_ASC);

IInfoObjects reports = infoStore.find(propertySet, searchPattern, sortType);

for (Object obj : reports) {

   IInfoObject iObject = (IInfoObject) obj;

   if (iObject instanceof IWebi) {

      IWebi iWebi = (IWebi) iObject;

      IWebiDocDataProviders IWDDPs = webi.getDocumentDataProviders();

       IWebiDocDataProvider IWDDP = (IWebiDocDataProvider) IWDDPs.item(0);

       IWDDP.getName());

       IWDDP.getID());

       IWDDP.getDataSourceName());

       IWDDP.getDataSourceID());

 

 

where found datasource details schema, table and columns of the report?


Viewing all articles
Browse latest Browse all 1701

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>