BusinessObjects Board

Select objects of an universe in Java

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


System.out.println("Connecting...");
		   
		   ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
		   enterpriseSession = sessionMgr.logon("","", "", "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());
		   }

frezaertko (BOB member since 2017-11-13)

Your code is using REBean, which only allows some read-only access to universe data (and is deprecated in BI4).

If the universe is a unv, then you will need to use the Designer COM SDK (.NET, VB).

If the universe is a unx, then you will need to use the Semantic Layer SDK (Java).

See this page for docs: https://archive.sap.com/documents/docs/DOC-38810


joepeters :us: (BOB member since 2002-08-29)