cancel
Showing results for 
Search instead for 
Did you mean: 

Convert String Value To MdmValue

former_member192434
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)