The way to do what you described is by setting gadget states from within the gadget. So when a viewer populate some data in an input field from your gadget, you would set a wave state to represent this data. Setting a gadget state would trigger DOCUMENT_CHANGED event to the robot. The robot in turn can retrieve this event and its associated context, including the triggering blip which contains the gadget. From there the robot can get the reference to the gadget and its gadget states.
Austin On Tue, Nov 3, 2009 at 3:28 AM, gana <[email protected]> wrote: > > Hi, > > So I was creating a robot which sends a notification to a subscribed > email id when a new Blip is submitted. > For this sake, I created a gadget, that gets inserted into the wave > ( by the robot ) when the robot is first added. > This gadget maintains a list of all the email id's which have > currently subscribed to the wave. > Whenever a new blip is submitted, my idea was, access the gadget, get > the field containing the email id's and then send a notification to > all those mail id's. > > The problem is sometimes the robot is not able to get a handle to the > gadget, which means no list of email id's. I am not sure, but I am > guessing this is with regard to the context or something of the > current conversation? So even if the gadget is added to the root blip, > I wont be able to get a handle to the gadget? > > It kind of works for the first time, after which the email stops > coming in? > > Is there some other way I can get this working? > > > PS to the Google guys : Can I get a sandbox account pls ? I am still > working on the preview. :) > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Wave API" 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-wave-api?hl=en -~----------~----~----~----~------~----~------~--~---
