Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hi all.
I whant to use webject for retrive data from vWindchill 9 m30, and use them in jca tag describeTable.
But result data not localized on native language m30 officially support russian and them installed ok.
How I can localize attribute state and priority of ChangeReqiest obbject?
Thanks.
I find in Knowledge Base base this sover:
Description
InfoEngine returns attribute values in units of measurement system SI regardless of measurement system preferences in Site-Preferences and wt.properties
Resolution
An additional post-processing actions must be taken after the query webject.
<ie:webject name="Query-Objects" type="OBJ">
...
<ie:param name="UNFORMATTED" data="wt.units.FloatingPointWithUnits"/>
<ie:param name="GROUP_OUT" data="output"/>
</ie:webject>
<% ext.UnitPostProcessor.process ( getGroup ( "output" ) ); %>
This processor needs to perform these actions while looping through the "group":
Att a = (Att)atts.nextElement ();
Object value = a.getRawValueAt(i);
FloatingPointWithUnits fpw = (FloatingPointWithUnits)value;
String displayUnits = DESCRIPTOR_FACTORY.get ( ati, null, locale ).getProperty ( DescriptorConstants.UNITS+"."+MEASUREMENT_SYSTEM );
a.setRawValueAt( DataTypesUtility.toString ( fpw, displayUnits,locale ), i);
May be exist more elegant solution?