on 03-31-2014 8:03 AM
Hi Experts
I am trying to develop a jsp page which lists out webi reports,the universe on which it is based.I am facing difficulty when i fire this query:
select si_name,si_owner,si_universe,si_parent_folder from ci_infoobjects where si_kind='webi'
Though i get the output like the one below:
I am not able to find a way to access the contents of si_universe like the universe id(4981) using java sdk.
Please guide me how to access these nested contents of si_universe.
Thanks in advance.
Thanx a lot prithvi ..
I will try this out..:)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ankit,
You would need to use the IProperties class of BusinessObjects Platform SDKs.
I am attaching a sample snippet for your referrence.
String query = "SELECT SI_ID,SI_NAME,SI_UNIVERSE FROM CI_INFOOBJECTS WHERE SI_KIND = 'webi'";
IInfoObjects webiObjects = (IInfoObjects)iStore.query(query);
for(int i=0;i<webiObjects.size(); i++)
{
IInfoObject webiObject = (IInfoObject)webiObjects.get(i);
IProperties webiProperties=webiObject.properties();
IProperties webiProperty=(IProperties)webiProperties.getProperties("SI_UNIVERSE");
String universeTotal=webiProperty.getProperty("SI_TOTAL").getValue().toString();
Integer universe=new Integer(universeTotal);
if(universe.intValue()!=0)
{
for(int temp=1;temp<=universe.intValue();temp++)
{
String universeID=webiProperty.getProperty(""+temp).getValue().toString();
String queryWebi = "select SI_NAME from ci_appobjects where si_id="+universeID;
IInfoObjects universeQuery = iStore.query(queryWebi);
IInfoObject universeObject = (IInfoObject)universeQuery.get(0);
out.print(universeObject.getTitle());
}
}
Hope this helps.
Thanks,
Prithvi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.