I think what you mean is
param[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
[opensocial.Person.Field.ABOUT_ME,
opensocial.Person.Field.AGE];
param[opensocial.DataRequest.PeopleRequestFields.SORT_ORDER] =
opensocial.DataRequest.SortOrder.NAME;
The code is also more succinct as
param = {
'profileDetail' : ['aboutMe','age'],
'sortOrder' : 'name',
};
Rob Russell
Google Developer Relations
On Tue, Nov 9, 2010 at 7:57 AM, anu k Simon <[email protected]> wrote:
> Hi All,
>
> Is anyone knows i google supports sort by name when requests friends
> profile from the gadget ? I tried with the following code but its
> not working.
>
> var idSpec2 = opensocial.newIdSpec({"userId" : "VIEWER","groupId" :
> "FRIENDS"});
>
> dataReqObj = opensocial.newDataRequest();
> param={};
> param[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
> [opensocial.Person.Field.ABOUT_ME,
> opensocial.Person.Field.AGE];
>
> opensocial.DataRequest.PeopleRequestFields.SORT_ORDER =
> opensocial.DataRequest.SortOrder.NAME;
>
> dataReqObj.add( dataReqObj.newFetchPeopleRequest(idSpec2, param),
> 'get_data_friends');
> dataReqObj.send(response2);
>
> --
> You received this message because you are subscribed to the Google Groups
> "iGoogle Developer Forum" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-gadgets-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/Google-Gadgets-API?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"iGoogle 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/Google-Gadgets-API?hl=en.