You need to get the Gadget entry from the gadget you added. Once you
do this, you can use element.setField(key, value) to control its
state. I'm not sure how to go about getting the gadget object for a
newly added gadget (gadget insert/append have no return types).
Perhaps you can go back and try something like GadgetView.getGadgets
or getGadget("url") to find it again.
On Oct 18, 12:20 pm, Chris Searle <[email protected]> wrote:
> If you have a robot add a gadget to a wave (adding a document.Gadget
> to the blip document) - is there a way to initialize the state of the
> gadget? For example - if the robot has found enough information in the
> blip text itself - it would be nice to just use it instead of
> presenting the user with the form that is used when no state is present.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---