Thousand Seprator In XML [message #333638] |
Sun, 13 July 2008 23:53 |
paradoxkhan
Messages: 92 Registered: April 2008 Location: Pakistan
|
Member |
|
|
Dear Friends,
im designing layout in XML for Reports(oracle reports for R12)
1) How can i Add THOUSAND SEPRATOR "," for numeric values ?
waiting for reply
|
|
|
Re: Thousand Seprator In XML [message #333639 is a reply to message #333638] |
Mon, 14 July 2008 00:07 |
Frank
Messages: 7901 Registered: March 2000
|
Senior Member |
|
|
I would not do that. XML is for transferring data; thousands-separators are format.
Formatting is the job of the presentation software, in your case Reports.
|
|
|
|
|
Re: Thousand Seprator In XML [message #333650 is a reply to message #333640] |
Mon, 14 July 2008 01:24 |
Frank
Messages: 7901 Registered: March 2000
|
Senior Member |
|
|
paradoxkhan wrote on Mon, 14 July 2008 07:15 | so what should i do? help me out
|
Looks to me like I made that clear.
Of course, it all depends on who defines your XSD, but if you have the choice, send your numbers as numeric in the XML. Use Reports to format the numeric data.
|
|
|
|
|
Re: Thousand Seprator In XML [message #333664 is a reply to message #333662] |
Mon, 14 July 2008 01:47 |
Frank
Messages: 7901 Registered: March 2000
|
Senior Member |
|
|
You made an error in Reports. Fix that instead of sending in false data.
Suppose I would want that data to be displayed. The thousands separator for my Locale is a dot. Reports can handle that, given you send your data as numeric.
Suppose you want to have a choice of displaying the trailing zeroes for the cents-values. Reports can handle that.
As soon as you add separators in the XML, your data will be a string; no formatting possible (without lots of hassle)
|
|
|
|
|
|