11-17-2011 06:12 PM
Use of ISF to format a number with decimal places
Version 6.07
Oracle 9i
IE6 and IE7
I was wondering if anyone knows the syntax to format a text field into a number with decimal places. (using Javascript not the configuration page)
I tried the syntax below and get a "object not supported" error.
serviceForm.DICTIONARY.FIELD.setFieldValue[(100)}.fixed(2)
Thank you
Daniel
11-17-2011 06:12 PM
This might be of some help (not sure if the links below are still valid anymore though):
Solution Title: Formatting Javascript strings to currency
Solution Details
PROBLEM:
Is there a supported java function to format a string into a dollar value?
Even though the fields are money, it shows as 1000 I want to show the number as either $1000.00 or 1000.00
SOLUTION:
Unfortunately, there is no built-in javascript funtion to format a string to currency. Howe
11-17-2011 06:12 PM
Another potentially helpful reference:
Solution Title: How to add integers in Javascript
Solution Details:
The int keyword is not supported in the Javascript language set at this time. Quoting from a reference:
"JavaScript's approach to numbers is different from other languages because every number is treated as a floating point number. JavaScript does not support integers, octals and hexadecimals from a formatting perspective, but, as the lowest level, JavaScript sees numbers
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide