Quantcast
Channel: SCN : Unanswered Discussions - Semantic Layer
Viewing all articles
Browse latest Browse all 1291

IDT SDK - getting connection for DataFoundation table

$
0
0

Hello,

 

I retrive universe from repository, open local DataFoundation and getting tables.

 

Now I want to knowwhichconnection (repository SI_ID) using each table. Any ideas?

 

My code:

String localPath = cmsService.retrieveUniverse("MY_UNIVERSE.unx", LOCAL_FOLDER, true);
SlResource loadedRes = localService.load(localPath);
RelationalBusinessLayer businessLayer = (RelationalBusinessLayer) loadedRes;
String localDFPath = businessLayer.getDataFoundationPath();
SlResource resource = localService.load(localDFPath);
DataFoundation dataFoundation = null;
if (resource instanceof MonoSourceDataFoundation) {            dataFoundation = (MonoSourceDataFoundation) resource;
} else if (resource instanceof MultiSourceDataFoundation) {            dataFoundation = (MultiSourceDataFoundation) resource;
}
List<Table> tables = dataFoundation.getTables();
for (Table table : tables) {          System.out.println("Table: " + table.getName() + " using connection: ????");
}

BO 4.1 SP3


Viewing all articles
Browse latest Browse all 1291

Trending Articles



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