Callback event object lacks form parameters
Great framework. It's been of much use. However, I'm stuck on getting form data on the server. Had you actually had it working at some point? If you have any idea what's going on, your help would be much appreciated. Thanks.
Form UI
var deleteCustomer = {
wType: 'VerticalPanel',
id: "deleteCustomer",
items: [
{
wType: 'HorizontalForm',
id: 'deleteCustomerForm',
items: [{
wType: 'ListBox',
name: 'customer'
}, {
wType: 'Button',
text: 'Delete Customer',
onClick: {
callback: 'deleteCustomer',
cbElement: 'deleteCustomerForm'
}
}],
}]
};
Server-Side Handler
UiBot.addProperty = function(e) {
Logger.log(e);
};
Log
{parameter={clientY=150, clientX=440, eventType=click, ctrl=false, meta=false, source=u82876828834, button=1, alt=false, screenY=254, screenX=485, y=8.18182373046875, shift=false, x=39.090911865234375}}
Hi - try changing the "cbElement" property of "onClick" to "cbElementId" and let me know if that fixes the issue (also in the code above I think you meant to put UiBot.deleteCustomer in the server side handler)...
Yeah, that did it, thanks.