Hi All
I have a global method nested inside a local onDataChanged method. I need to pass the “oldValue, newValue, event” values to the global method. Is this possible?
Thanks for your help.
Hi All
I have a global method nested inside a local onDataChanged method. I need to pass the “oldValue, newValue, event” values to the global method. Is this possible?
Thanks for your help.
You mean like this?
function onDataChange(oldValue, newValue, event) {
//some code
globals.yourGlobalMethod(oldValue, newValue, event);
//more code
}
Thanks Joas
Yes. Like this.
function onDataChange(oldValue, newValue, event) {
globals.yourGlobalMethod(oldValue, newValue, event);
//some code
}
It works fine now. Thanks for the help.