on 11-02-2010 2:20 PM
All,
I am trying to get the display name from a value list value that is linked to an extension field.
But with the following code, I keep getting the display name ID instead of the displayName.
evalTypeObj = Rfx.getExtensionField("custom_Eval_Type").get();
vlvHome= IBeanHomeLocator.lookup(session, evalTypeObj);
vlv1 = vlvHome.find(evalTypeObj);
evalType = vlv1.getLocalizedObjectReference().getDisplayName();
any idea what I am doing wrong?
Regards,
Tom
HI Tom,
try
evalType = vlv1.getLocalizedObjectReference().getDisplayName(session);
I am not sure why you are using a round about to get the display name.
evalTypeObj = Rfx.getExtensionField("custom_Eval_Type").get();
evalTypeObj.getDisplayName();
This itself should get the display name.
Hope this helps.
Regards
Immanuel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tom -
I agree with Immanuel that you can simply change the last line of your code to include session in the call to getDisplayName() as here:
evalTypeObj = Rfx.getExtensionField("custom_Eval_Type").get();
vlvHome= IBeanHomeLocator.lookup(session, evalTypeObj);
vlv1 = vlvHome.find(evalTypeObj);
evalType = vlv1.getLocalizedObjectReference().getDisplayName(session);
An even simpler solution, however, would be to do this:
evalTypeObj.getDisplayName(session);
Hope this helps.
Rob
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.