My question is about the parameter ‘e’ in server side handlers in GAS.
If i have a handler like
function handler(e)
{
}
I want to know what all is accessible using “e.parameter.”
What is e.parameter? Can i get the source widget that raised the handler?
The
e.parameteris an instance of the Object class which stores values of widgets which were added to the handlers internals using the ServerHandler.addCallbackElement method.Yes, it is possible by defining the widgets ID by calling its
setIdmethod and using theparameter.sourcevariable, which contains the caller id, and the UiInstance.getElementById method.Today was posted a question which is linked with your one.