Hi,
I'm trying to get the Editor Date Spinlist control to work. So far, not having much success.
I have a List control with a Formview control. One of the fields in the formview is called "rego_expiry". This is from a table in MySQL and is defined as a date field (standard date formats in MySQL are yyyy-MM-dd).
I have setup the date format in the properties tab in Alpha as dd/MM/yyyy. In the formview control, I have configured a display format for the rego_expiry field using date string with server-side format as input and dd/MM/yyyy as output. This displays the date in the format I want. I have also configured the editor for this field to use the Editor Date spinlist.
Now the problem is when ever I click on this field in the formview, nothing happens. When I do an Inspect in the browser, I can see the following error:
TypeError: es.editors[editor] is undefined
a5-43464889.js: if(typeof settings.autoCommit=='undefined')settings.autoCommit=es.autoCommit;es._s=settings;$(this.dialogId+'.'+editorSet+'.'+editor).style.display='';es.editors[editor].edit.call(this,settings.state.value,settings);es.show.call(this,settings.state.value,settings);if(typeof es.editors[editor].show!='undefined'){es.editors[editor].show.call(this,settings.state.value,settings);}},editorSetFromEditor:function(editorName){var edObj=this._EDITOR_EDITORSET[editorName];var es='';if(typeof edObj!='undefined')es=edObj.editorSet;if(typeof es=='undefined')es='';return es;},editorFromControl:function(editorSet,editor,control){editor=editor.toUpperCase();var settings=typeof arguments[3]!='undefined'?arguments[3]:{};if(control.constructor==Array){var value=[];for(var i=0;i<control.length;i++)value.push(this.getValue(control[i]));}else{var value=this.getValue(control);}
The error is pointing to column 152 in the above line, which seems to be the part: es.editors[editor].edit.call(this,settings.state.value,settings).
Originally I was thinking that it was some kind of type mismatch with the date formats. However, I am now thinking the editor has not been properly defined based on the above.
This is how I have setup the editors:
Editor Date Spin issue.PNG
As you can see, I am using two other editors (text and list) which are both working fine.
Help much appreciated.
Cheers,
Greg
I'm trying to get the Editor Date Spinlist control to work. So far, not having much success.
I have a List control with a Formview control. One of the fields in the formview is called "rego_expiry". This is from a table in MySQL and is defined as a date field (standard date formats in MySQL are yyyy-MM-dd).
I have setup the date format in the properties tab in Alpha as dd/MM/yyyy. In the formview control, I have configured a display format for the rego_expiry field using date string with server-side format as input and dd/MM/yyyy as output. This displays the date in the format I want. I have also configured the editor for this field to use the Editor Date spinlist.
Now the problem is when ever I click on this field in the formview, nothing happens. When I do an Inspect in the browser, I can see the following error:
TypeError: es.editors[editor] is undefined
a5-43464889.js: if(typeof settings.autoCommit=='undefined')settings.autoCommit=es.autoCommit;es._s=settings;$(this.dialogId+'.'+editorSet+'.'+editor).style.display='';es.editors[editor].edit.call(this,settings.state.value,settings);es.show.call(this,settings.state.value,settings);if(typeof es.editors[editor].show!='undefined'){es.editors[editor].show.call(this,settings.state.value,settings);}},editorSetFromEditor:function(editorName){var edObj=this._EDITOR_EDITORSET[editorName];var es='';if(typeof edObj!='undefined')es=edObj.editorSet;if(typeof es=='undefined')es='';return es;},editorFromControl:function(editorSet,editor,control){editor=editor.toUpperCase();var settings=typeof arguments[3]!='undefined'?arguments[3]:{};if(control.constructor==Array){var value=[];for(var i=0;i<control.length;i++)value.push(this.getValue(control[i]));}else{var value=this.getValue(control);}
The error is pointing to column 152 in the above line, which seems to be the part: es.editors[editor].edit.call(this,settings.state.value,settings).
Originally I was thinking that it was some kind of type mismatch with the date formats. However, I am now thinking the editor has not been properly defined based on the above.
This is how I have setup the editors:
Editor Date Spin issue.PNG
As you can see, I am using two other editors (text and list) which are both working fine.
Help much appreciated.
Cheers,
Greg
Comment