I have two problems. The first one is that the richText editor is suddenly not working. The toolbar has quit displaying and the text doesn't wrap, enter key is blocked (just makes the computer beep), and html code shows up. No code had been changed on this page in quite some time... it just started acting weird.
The second issue is critical and happens even if I just use a plain textarea instead. This issue is occuring on a dynamic form and I am using RC2 and IE (v6 unfortunately... it's a NAVY computer so I have no choice). The problem is that add record works fine but when I use the saveData function, I get an error that only shows in the developer console which says...
13:00:54.986:MUP5:WARN:DynamicForm:editForm:saveData() called on a non-databound DynamicForm. This is not supported. for information on databinding of components look at the documentation for the DataSource class. If this was intended to be a native HTML form submission, set the canSubmit property to true on this form.
The relevent code follows:
Here is the data source.
Here is the dynamic form and the save button code used for the add and resave functions.
I am including all the usual code modules including the richText one. As I said, the rich text stuff WAS working and then quit with no code changed in weeks...
Any ideas would be much appreciated, especially concerning the saveData issue. Oh yeah, the save issue has been there all along and did not suddenly change as the richText issue has.
The second issue is critical and happens even if I just use a plain textarea instead. This issue is occuring on a dynamic form and I am using RC2 and IE (v6 unfortunately... it's a NAVY computer so I have no choice). The problem is that add record works fine but when I use the saveData function, I get an error that only shows in the developer console which says...
13:00:54.986:MUP5:WARN:DynamicForm:editForm:saveData() called on a non-databound DynamicForm. This is not supported. for information on databinding of components look at the documentation for the DataSource class. If this was intended to be a native HTML form submission, set the canSubmit property to true on this form.
The relevent code follows:
Here is the data source.
Code:
isc.RestDataSource.create({ ID:"newsTableDS", dataFormat:"json", fetchDataURL:"/newsTableOps.asp", addDataURL:"/newsTableOps.asp", updateDataURL:"/newsTableOps.asp", removeDataURL:"/newsTableOps.asp", fields:[ {name:"ID", primaryKey:true, hidden:true, type:"integer"}, {name:"PurposeCode", type:"text", hidden:true, length:4}, {name:"Subject", title:"Subject", type:"text", length:60, required:true}, {name:"DatePosted", type:"date", hidden:true, length:10}, {name:"DateExpires", type:"date", useTextField:true, required:true}, {name:"Contents", type:"text", length:8000, required:true}, {name:"ActiveItem", type:"boolean", hidden:true} ] });
Code:
isc.VLayout.create({ top:102, left:268, width:497, edgeSize:3, showEdges:true, members:[ isc.DynamicForm.create({ ID:"editForm", width:490, numCols:4, colWidths:['*',250,'*',110], canSubmit:true, fields:[ {name:"Subject", title:"Subject", type:"text", length:60, width:245}, {name:"DateExpires", title:"Expires", type:"date", lenght:10, width:110, useTextField:true}, {name:"Contents", title:"Contents", type:"richText", colSpan:4, width:"*", height:300, controlGroups:["styleControls", "formatControls", "insertControls"] } ] }) ] }); ... isc.Button.create({ ID:"resaveBtn", title: "reSave Item", styleName:"cssButton", autoDraw:false, width: 96, height:18, showDisabled: true, click : function () { editForm.saveData(function(dsResponse, data, dsRequest) { newsList.deselectAllRecords(); newsList.selectRecord(data); editForm.editSelectedData(newsList); }); } }) ... isc.Button.create({ title: "Save As New", ID:"saveNewBtn", styleName:"cssButton", autoDraw:false, width: 96, height:18, showDisabled: true, click : function () { if (editForm.validate()) { newsList.addData(editForm.getValues(), function(dsResponse, data, dsRequest) { newsList.deselectAllRecords(); newsList.selectRecord(data); editForm.editSelectedData(newsList); }); } } })
Any ideas would be much appreciated, especially concerning the saveData issue. Oh yeah, the save issue has been there all along and did not suddenly change as the richText issue has.
Comment