Hi Nitin,
Sorry for the late response.
Right now only opensocial.Name.Field.UNSTRUCTURED is supported. You
can use the opensocial.getEnvironment().supportsField method to
determine what fields are supported by the opensocial container. The
following line of code returns true indicating UNSTRUCTURED is
supported
opensocial.getEnvironment().supportsField(opensocial.Environment.ObjectType.NAME,opensocial.Name.Field.UNSTRUCTURED)
Thanks,
Rohit
Before trying to access any of the fields from pers
On May 25, 8:13 pm, "Nitin Mittal" <[EMAIL PROTECTED]> wrote:
> I am trying this code to get the owner's first name:
>
> owner = data.get("owner").getData();
> alert(owner.getId());
> var name = owner.getField(opensocial.Person.Field.NAME);
> alert(name);
> alert(name.getField(opensocial.Name.Field.FAMILY_NAME));
>
> I am able to get the name object but I get a null object when I call
> "name.getField(opensocial.Name.Field.FAMILY_NAME)".
>
> Firebug show this for the data request:
> hile (true);
> &&&START&&&{"Responses":[{"response":{"Value":{"List":[{"AboutMe":"","AllowSend":true,"FullName"
> :{"FamilyName":"(flaunt your
> shopping)","GivenName":"ShoppingShouts","Unstructured":"ShoppingShouts
> (flaunt your
> shopping)"},"Id":"02356464212049397141","Location":"","Name":"ShoppingShouts
> (flaunt your
>
> shopping)","Nickname":"","Occupation":"","ProfileEdited":false,"ShowStatus":false,"Status":"","Thumbnail"
> :"http://img3.orkut.com/images/small/1185188819/67982571.jpg"}],"Start":0,"Total":1}},"key":"viewer"},{"response":{"Value":{"List":[{"AboutMe":"","AllowSend":true,"FullName":{"FamilyName":"(flaunt
>
> your
> shopping)","GivenName":"ShoppingShouts","Unstructured":"ShoppingShouts
> (flaunt your shopping)"},"Gender"
> :"FEMALE","Id":"02356464212049397141","Links":[{"Name":"","Url":"http://www.shoppingshouts.com"}],"Location"
> :"","Name":"ShoppingShouts (flaunt your
> shopping)","Nickname":"","Occupation":"","ProfileEdited":false
> ,"ShowStatus":false,"Status":"","Thumbnail":"http://img3.orkut.com/images/small/1185188819/67982571.jpg"
>
> }],"Start":0,"Total":1}},"key":"owner"}
>
> Why I am getting this null object? Am I missing something?
>
> -Nitin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---