Using getGUID results in java error

0
Hi I am trying to use the getGUID command from community commons to retrieve the GUID from several objects to get an unique reference id. The methode should result an integer, however i cannot store the data in a integer field; it seems it needs a long field to store the value. for a couple of entities this works. For some other entities i get an error: Invalid JSONRequest: Value 12666373951980821 out of range for javascript. In a long 2^63 should fit (9223372036854775807), so that shouldn't be the problem. How to deal with this? regards, Pieter
asked
2 answers
1

See http://stackoverflow.com/questions/307179/what-is-javascripts-max-int-whats-the-highest-integer-value-a-number-can-go-t for why we restrict this value. Use a String if you must show a value this large in the client.

answered
0

You can store it in a string. it is a javascript limitation as far as I heard.

answered