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
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?