on 02-19-2009 5:45 AM
Hi,
How to retrieve flat lookup table ID using MDM java API.
Thanks.
Hi Jyothi,
You can use the below line to retrieve the table id of particular lookup table
TableId tableId= repositorySchema.getTable("Lookuptable name").getId();
Regards,
Jitesh Talreja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jyothi,
You can use the following code to get Table id of any MDM table.
UserSessionContext context = new UserSessionContext(serverName,repositoryName,defaultLang,username);
// SessionManager session = SessionManager.getInstance();
//String userSession = session.createSession(context, SessionTypes.USER_SESSION_TYPE, password);
MetadataManager metadataManager = MetadataManager.getInstance();
metadataManager.registerDataNotifications(context, password);
RepositorySchemaEx repositorySchema = metadataManager.getRepositorySchema(context);
TableSchema tableSchema = repositorySchema.getTableSchema("Table Code");
System.out.println("Table id:"+tableSchema.getTable().getId());
Thanks & Regards,
Veeru.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.