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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

How to localize webject data

FeofilovIvan
7-Bedrock

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?

Announcements


Top Tags