on 07-24-2009 8:58 AM
Hi All,
Can someone tell me how to get the TableId for a table using the MDM Java Api, if i only know the Table Code in MDM.
Also can i see the table ID of my tables in MDM Console?
Hi Harsh,
You can make use of class GetRepositorySchemaCommand
GetRepositorySchemaCommand repo = new GetRepositorySchemaCommand(con)
try
{
repo.execute();
}
catch(Exception e)
{}
RepositorySchema r = repo.getRepositorySchema();
TableId tid = r.getTableId("Material");
where con = ConnectionAccessor object
Material = Table Code
I have not tested the the above code but i think it will work
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.
Thanks Jitesh,
It worked
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.