Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8545

Re: Extract class id and object id from WEBI 3.1

$
0
0

Hi Kavitha,

 

You can get the classes in a datasource using the below code snippet:

 

---------------------------------------------------------------------------------------------------------------------------------------

IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(i);

out.println("<tr><td>"+ oInfoObject.getTitle() + "</td>");

DocumentInstance wiDoc = widocRepEngine.openDocument(oInfoObject.getID());

 

DataSourceObjects dbObject=wiDoc.getDataProviders().getItem(0).getDataSource().getClasses();

for(int k=0;k<dbObject.getChildCount();k++)

{

String count=dbObject.getChildAt(k).getName();

out.println("<td>"+count+"</td></tr>");

out.println("<tr><td> </td>");

}

---------------------------------------------------------------------------------------------------------------------------------------

 

However I am not sure about the objects, if you can specify your requirement with an example we can check for some options.

 

Hope this helps.

 

Regards,

Rajarsh


Viewing all articles
Browse latest Browse all 8545

Trending Articles



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