on 11-08-2011 5:09 AM
Dear Experts,
I'm new to MDM, i want to convert String to MdmValue., as i'm getting region and then getLookupDisplayValue, which is returning string but i want MdmValue for futher process.
FieldId fID = reslt[k].getMetadata().getFieldId("MDM_REGION");
String abc = reslt[k].getLookupDisplayValue(fID);
Any hlep will greatly appricated.
Thanks
AB
Hi Anup,
you can use
StringValue newMdmValue = new StringValue(abc);
and then use that value for further process.
You can't get an instance of MdmValue type directly because it's interface, but StringValue implements that interface like many other classes: IntegerValue, LookupValue, BooleanValue etc for the different simple types.
Hope it helps,
Sergey
Edited by: Sergei Zavarzin on Nov 8, 2011 7:17 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.