Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Can't serialize a currency field.

$
0
0
Re: Can't serialize a currency field.
Web Connection 5.0
Re: Can't serialize a currency field.
Feb. 10, 2013
05:08 am
3PO0B0BJMShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Marty Glynn
Hi Marty,

Thanks for the report.

To fix change to the following in the WriteValue function:

CASE lcType == "Y"this.cOutput = this.cOutput + ALLTRIM(TRANSFORM(lvValue,"@N"))CASEINLIST(lcType,"I","N","F")this.cOutput = this.cOutput + TRANSFORM(lvValue)

The problem was that Transform() on a currency value results in $10.00 which is bad :-)

Fixed on this end and updated...

+++ Rick ---


I have a table containing a field with a currency type. The output from

loSerializer.Serialize("cursor_rawarray:TCustomers") is not valid JSON

I'm using the latest JSON parser.

var aCustAns=[{"entityname":"aaa","postonhld":"aaa","dllrmntfbs":$11,111.00,"id":6864}, {"entityname":"222","postonhld":"222","dllrmntfbs":$22,222.00,"id":6865}, {"entityname":"333","postonhld":"333","dllrmntfbs":$333.00,"id":6866}]



Rick Strahl
West Wind Technologies


from Berlin

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles