cancel
Showing results for 
Search instead for 
Did you mean: 

How to get table code of a lookup table?

Former Member
0 Kudos

I have the lookup field name in the main table. How can I get the table code of the lookup table with MDM Java API?

Thanks:-)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Please try given below steps :

1. Get Field Properties of particular field from Repository schema with the method

getField(java.lang.String tableCode, java.lang.String fieldCode)

2. Type cast this field properties to lookupField properties.

3.Get Lookup Table ID from lookup properties getLookupTableId() method.

for example : ((LookupFieldProperties)currentproperties).getLookupTableId()

4. Get Lookup table code from the Table ID retrieved in step 3.

Hope it helps.

Regards,

Neeharika

Former Member
0 Kudos

Hi Neeharika,

It works! Thanks a million:-)

Answers (0)