How to remove the Currency Symbol from the AmountOfMoney datatype in Vantage

Question

How can the Currency Symbol be removed from a value with the AmountOfMoney datatype?

Answer

This can be accomplished with an Advanced Script Rule on the field containing the Currency Symbol.  A sample of the script that can be used is below:

var amountField = Context.GetField("Total"); 
amountField.Value = new AmountOfMoney (amountField.Value.Amount, "");

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.