Sorry Apurv, but I'm still getting problems...

I tried to use:

<os:PersonAppDataRequest key="myData" method="appdata.get" userId="@owner"
appId="@app" fields="*" />

but I don't saw on generated code something like that:

opensocial.data.DataContext.putDataSet("myData"...

I'm expecting this based on other request where:
<os:PeopleRequest key="friends" userId="@owner" groupId="@friends"
filterBy="hasApp" />

Gets a correct list of my friends as the JSON below:

opensocial.data.DataContext.putDataSet("friends"...



Questions:
1- I need to use "@app" or the correct id on field "appId="? appId="@app" or
appId="1234567890"? (I've tried the 2 ways)

2- Can I use fields="*" to get all fields stored by "owner" as in this
example


Just to clarify my needs, I have to display 2 informations on Profile View:
- owner can add or view his "favorites" and this data is stored on
OpenSocial.
- At the same screen, the owner can view "favorites" of their friends.

This is working properly on canvas and profile, but I'm not getting
successful on converting to templates format.

Could you please to help me?


regards,
Jota




On Thu, Mar 19, 2009 at 2:20 AM, Apurv Gupta <[email protected]> wrote:

> personAppDataRequest is meant for getting appData. Use os:PeopleRequest for
> people.get and OwnerRequest/ViewerRequest for owner/viewer.
>
> Something like this works:
>
>     <os:PersonAppDataRequest key="poked_by" method="appdata.get"
> userId="@owner" appId="@app" fields="pk"/>
>
> On Thu, Mar 19, 2009 at 1:58 AM, Jota <[email protected]> wrote:
>
>> Hi Developers,
>>
>> I'm trying to get data from opensocial using the new template way, but I
>> can't get any information stored on OpenSocial.
>>
>> Actually, I'm using:
>> <os:PersonAppDataRequest key="owner_data" method="people.get"
>> userId="@owner" groupId="@self" fields="*" />
>>
>> but I didn't receive any JSON (view source) and I know there are data
>> saved, because the canvas-view is still working properly.
>>
>> At the sametime, using:
>> <os:PeopleRequest key="friends" userId="@owner" groupId="@friends"
>> filterBy="hasApp" startPage="1" count="20" />
>>
>> I got the correct owner friends list through JSON.
>>
>>
>> Anybody help?
>>
>> thanks,
>> Jota
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" 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-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to