Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

WordNum - value correction

$
0
0

I was trying to express numeric value to words and changing currency from Dollars to Pesos. I did so through the following discussions:

 

Voucher.PNG

Details:

 

NOTE#1 - User Entered

NOTE#2 - Calculated (Read only)

NOTE#3- Text Field. Calculated (Read only) WordNum from numeric value in NOTE#2.

 

topmostSubform.Page1.Amount::calculate - (FormCalc, client)
Replace ( Replace ( Replace( Replace ( WordNum (topmostSubform.Page1.Total, 2) , "Dollars ", "Pesos"), "Dollar ", "Peso"),  "Cents", "Centavos"), "Cent", "Cent")

 

Just the way I wanted it to display, unfortunately as you may have noticed in the image in NOTE#3 the value read as:

One Thousand Two Hundred Thirty-four PesosAnd Fifty-six centavos

 

How do I correct it to:

 

One Thousand Two Hundred Thirty-four Pesos And Fifty-six centavos

 

And is it possible for me to able to have the value in upper case with at the end with ONLY.

 

ONE THOUSAND TWO HUNDRED THIRTY-FOUR PESOS AND FIFTY-SIX CENTAVOS ONLY

 

Pardon me guys but I am NOT that good with scripts.

 

Thank you in anticipation of your positive response.


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>