Have you been running the gadget as a .gg file or as a .gmanifest file? I
think the manual install of a .gg erases the options for security reasons...

2009/8/7 Rafael Brandão <[email protected]>

>
> Thank you for the reply!
>
> I mistyped the function, but I've been using "putValue()" correctly. I
> have no idea what's going on but it is still not properly saving
> changes, only if I go to another widget and change any piece of
> information there, what's really weird (I was running the google
> sidebar at Windows XP, perhaps that's the reason).
>
> Is there any change that it's a bug on google gadgets' API?
>
> Kind regards,
> Rafael
>
> On Aug 6, 3:05 pm, Benjamin <[email protected]> wrote:
> > Actually there is no setValue() method, the correct method is called
> > putValue(). There is no additional method or action necessary to
> > instruct Google Desktop to actually store the options. Every putValue
> > () call is automatically stored. You can even use options as a
> > temporary storage for information and it will work.
> >
> > Best regards,
> > Benjamin
> >
> > On Aug 5, 10:49 pm, Rafael <[email protected]> wrote:
> >
> > > Greetings!
> >
> > > I've been in troubles trying to make my widget persist certain types
> > > of data. Actually, I've learned about JSON and it is working fine. I'm
> > > also using "options.setValue()" to keep data. However, it seens that I
> > > have to trigger something else to confirm all the changes inside the
> > > options dictionary. It's like changing the value is not enough.
> >
> > > What else I have to do inside the widget to make sure that it will
> > > persist data?
> >
> > > I've realized that the widget only persists data when I change the
> > > focused widget to any other that has a working data persistance, i.e.
> > > the note draft widget. So all I need to do is to click there, inside
> > > the edit box, and when THAT widget saves its data, it will save the
> > > data of my widget.
> >
> > > Any ideas?
> >
> > > Thanks in advance,
> > > Rafael
>
> >
>


-- 
Teo (a.k.a. Teominator a.k.a. Teodor Filimon)
site www.teodorfilimon.com | blog www.teodorfilimon.blogspot.com
GMT +2

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

Reply via email to