Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the list of objects, tables... with the java SDK

Former Member
0 Kudos

Hello everybody

I would like to modify the description of all the BO objects of a universe, but I can not select the objects, with this code, I can only display the list of universes, could someone help me? thank you


ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
enterpriseSession = sessionMgr.logon("Administrator","adminrt1.3", "pcya40gt:6400", "secEnterprise");
reportEngines = (ReportEngines) enterpriseSession.getService("ReportEngines");
ReportEngine wiRepEngine = (ReportEngine) reportEngines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
IInfoStore infoStore = (IInfoStore) enterpriseSession.getService("InfoStore");
String query = "SELECT SI_ID, SI_NAME, SI_DATACONNECTION FROM CI_APPOBJECTS WHERE SI_KIND = 'universe'";
IInfoObjects unvs = (IInfoObjects) infoStore.query(query);

for (Object o : unvs)
{
IUniverse unv = (IUniverse)o;
Set<Integer> conns = unv.getDataConnections();

if (conns.size() != 0)
System.out.println(unv.getTitle());
}

  • SAP Managed Tags:
0 REPLIES 0