on 02-06-2007 5:26 PM
I am unable to retrieve language specific strings within a single user session I have searched the API and am starting to think it is not implemented in the API although SAP consultants have led me to believe that this functionality should be in the new API
I am using MDM API 5.5.35.16 (SP4patch3) (the newer API, mdm-admin.jar, mdm-common.jar, mdm-core.jar, mdm-data.jar, mdm-protocol.jar NOT the MDM4J.jar) .
I need confirmation of whether this is possible and if so a quick code sample to point me in the right direction .
I have a method that processes any MdmValue object The relavent part of the code is below:
For the strings that are multilingual, the mdmValue object is is actually the com.sap.mdm.valuetypes.StringValue class but this class does not have any methods to retrieve the multilingual strings values
private static void ProcessMDMValue(MdmValue mdmValue, FieldProperties fProp) {
String fieldCode = fProp.getCode();
String fieldTypeName = fProp.getTypeName();
if (!mdmValue.isNull()) {
switch (fProp.getType()) {
case FieldProperties.FIXED_WIDTH_TEXT_FIELD:
System.out.println(fieldCode + " = " + mdmValue.toString() + " (" + fieldTypeName + ")");
FixedWidthTextFieldProperties fwtfp = (FixedWidthTextFieldProperties) fProp;
if (fwtfp.isMultilingual()) {
System.out.println(fieldCode + " class name = " + mdmValue.getClass().getName());
// How to retrieve the multilingual strings ????
}
}
}
}
Any help GREATLY appreciated...Thanks!
Tony Schoenoff
Hi Tony
The (new) API SP05 will support multilingual values.
Regards,
Goekhan
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 | |
9 | |
7 | |
6 | |
5 | |
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.