Nitin,
Everything you currently store in AppData needs to be in a string.
However, you can convert an array to a string by calling
gadgets.json.stringify(passArray);
When you retrieve data stored like this, convert it back to an array
by calling:
gadgets.json.parse(gadgets.util.unescapeString(retrievedDataString));
Hope this helps,
~Arne
On Jul 1, 3:27 am, nitinkcv <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I just wanted to make sure that whether it is possible for me to pass
> arrays in req.newUpdatePersonAppDataRequest.
>
> Something like:
>
> ********************************************************************************************************
> var req = opensocial.newDataRequest();
>
> var data1 = Math.random() * 5;
> var data2 = Math.random() * 100;
> var data3 = new Date().getTime();
>
> var passArray = [data1, data2, data3];
>
> req.add(req.newUpdatePersonAppDataRequest("VIEWER", "ArrayObject",
> passArray ));
>
> ********************************************************************************************************
>
> Thanks,
> Nitin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenSocial Application Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---