Question & Answer
Question
RCP: How to display the currency symbol (like the $ symbol) for custom text boxes?
Answer
For custom text boxes which display a price, it would be necessary to
display the currency symbol. Out of the box price fields do display the
currency symbol. (Example: $ 40.52).
Here is how it can be done
for custom text boxes:
- Create a custom text box of type 'Advanced'.
- In the extension behaviour class, use the setCurrencyXPath method of the YRCTextBindingData class to set the Currency XPath. This would display the currency symbol.
Here is some
sample code:
YRCTextBindingData oData = new
YRCTextBindingData();
oData.setCurrencyXPath("OrderDetails:Order/PriceInfo/@Currency")
For more details, please refer to the javadocs of the YRCTextBindingData
class.
[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Historical Number
HTG2213
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21562567