Hi Sharath,
 
That was just an overview of how fetching stored data can be achieved.
Please add the viewer in the data request, following should work as it is.
if you are getting any errors, please post the exact error details.
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonRequest('VIEWER'),'viewer');req.add(req.newFetchPersonAppDataRequest('VIEWER',
 'data1'), 'inst');req.send(function(resp){
var viewer=resp.get("viewer").getData();var data= 
resp.get('inst').getData();var x=data[viewer.getId()]['data1'];
 })
Thanks ~@@[EMAIL PROTECTED] http://aakash-bapna.blogspot.com 



> Date: Tue, 22 Jul 2008 08:52:43 -0700> Subject: [orkut-developer] Re: Fetch 
> Persistence Data> From: [EMAIL PROTECTED]> To: 
> opensocial-orkut@googlegroups.com> > > Hi,> > Thats throwing errors.> > 
> Thanks> Sharath> > On Jul 22, 7:13 pm, "Guilherme Frisoni" <[EMAIL 
> PROTECTED]> wrote:> > Sharath,> >> > Your question has already been answered 
> by Aakash.> >> > *Hi Sharath,> >> > you can retrieve it like this-> >> > var 
> req = opensocial.newDataRequest();> > req.add(req.* 
> *newFetchPersonAppDataRequest('**VIEWER', 'data1'), 'inst');> > 
> req.send(function(resp){> > var data= dataResponse.get('inst').**getData();> 
> > var myVar =data[viewer.getId()]['**data1'];> >> > })> >> > Thanks> >> > 
> ~@@[EMAIL PROTECTED] <%7E@@[EMAIL 
> PROTECTED]>http://aakash-bapna.blogspot.com*> >> > Frisoni> >> > On Tue, Jul 
> 22, 2008 at 11:02, sharath <[EMAIL PROTECTED]> wrote:> >> > > Hi Jason,> >> > 
> > Can you let me know the function to retrieve the app data stored using> > > 
> above function.> >> > > Thanks> > > Sharath> >> > > On Jul 21, 6:51 am, 
> sharath <[EMAIL PROTECTED]> wrote:> > > > This is giving few errors, after 
> storing the app data , i am passing> > > > in to function init1, can you let 
> me know what is the function init1> > > > to retrieve the data stored with 
> above function.?> >> > > > Thanks> > > > Sharath> > > > On Jul 21, 3:12 am, 
> Aakash Bapna <[EMAIL PROTECTED]> wrote:> >> > > > > Hi Sharath,> >> > > > > 
> you can retrieve it like this-> > > > > var req => > > 
> opensocial.newDataRequest();req.add(req.newFetchPersonAppDataRequest('VIEWER',>
>  > > 'data1'), 'inst');req.send(function(resp){> > > > > var data= 
> dataResponse.get('inst').getData();var myVar> > > 
> =data[viewer.getId()]['data1'];})> > > > > Thanks ~@@[EMAIL 
> PROTECTED]://aakash-bapna.blogspot.com> >> > > > > > Date: Sun, 20 Jul 2008 
> 07:59:55 -0700> Subject: [orkut-developer]> > > Fetch Persistence Data> From: 
> [EMAIL PROTECTED]> To:> > > opensocial-orkut@googlegroups.com> > > Hello,> > 
> I am storing data using> > > the below function:> > function 
> populateMyAppData() {> var req => > > opensocial.newDataRequest();> var m = 
> document.x.keyword.value>> > > 
> req.add(req.newUpdatePersonAppDataRequest('VIEWER','data1',m),'installationUpdate');>>
>  > > req.send(init1);> };> > I need to retrieve the variable data1 stored and 
> use> > > it in my app.> what is the exact function to achieve it?> > Thanks> 
> Sharath>> > > 
> _________________________________________________________________> >> > > > > 
> With Windows Live for mobile, your contacts travel with you.> > 
> >http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_mob...> 
> _________________________________________________________________
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to