Hi,
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 List Objects Used in a set of Documents
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?
stylus (BOB member since 2008-08-09)