cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
940
Views
0
Helpful
2
Replies

Use of ISF to format a number with decimal places

Daniel Faust
Level 1
Level 1

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

2 Replies 2

Allen Cecil
Level 1
Level 1

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

Allen Cecil
Level 1
Level 1

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