YEAH! I did it! (as Hiro Nakamura said)

Apurv, thanks for helping.

[]'s,
Jota


On Thu, Mar 19, 2009 at 3:55 PM, Apurv Gupta <apurv.gu...@gmail.com> wrote:

> Try fields="" or omit it altogether. "*" doesn't work.
>
>
> On Fri, Mar 20, 2009 at 12:01 AM, Jota <jefferson.ru...@gmail.com> wrote:
>
>> 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 <apurv.gu...@gmail.com>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 <jefferson.ru...@gmail.com> 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 opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-orkut+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to