cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

How to localize webject data

FeofilovIvan
1-Newbie

How to localize webject data

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.


1 REPLY 1

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?

Top Tags