Guest Posted February 17, 2011 Posted February 17, 2011 Message from: "Cristiano Testai" Hi Farshad, I'm having an error that occurred after some changes in my code, which should be very simple: In SessionModule I have a ClientDataSet. In the Main module i inform "Append" and the following Ajax error occurs: O79.recordType is not a constructor O79.add (O79.recordType new ({0: "", 1 ", " 2 :""})); O182 = new Object ({id: "zero", width: 11, resizable: false, renderer: function () {return "";}}); Ext.grid.Column O183 = new ({id:" 0 ", dataIndex: "0 ", renderer: _rndcll_, header: " \ X3CP style = \ "background-color : # FFFFFF \ "\ x3EOperador \ x3C / p \ x3E", width: 88, attr :"{}", editable: false, editor: O6D}); Ext.grid.Column O184 = new ({id: "1 ", dataIndex: " 1 ", renderer: _rndcll_, header: " \ X3CP style = \ "background-color: # FFFFFF \" \ x3EHora \ x3C / p \ x3E ", width: 67, attr :"{}", editable: false, editor: O6D}); Ext.grid.Column O185 = new ({id: "2", dataIndex: "2 ", renderer: _rndcll_, header: "\ X3CP style = \"background-color: # FFFFFF \ "\ x3EAtividade \ x3C / p \ x3E", width: 200, attr :"{}", editable: false, editor: O6D}); ø180 Ext.grid.ColumnModel = new ({defaults: {menuDisabled: true }, columns: [O182, O183, O184, O185]}); O180.nm = "ø180; O182.nm =" O182 "; O183.nm =" O183 "; O184.nm =" O184 "; O185. nm = "O185"; O5B.reconfigure (O79, ø180); O79.load ({params: {start: 0, limit: 5, options: 2}}); The simple code below: begin dmSessionModule.cdsAtividade.Open; dmSessionModule.cdsAtividade.Append; end; Any idea? Delphi EX and UniGui 084. Cristiano Testai . Quote
Guest Posted February 17, 2011 Author Posted February 17, 2011 Message from: "Farshad Mohajeri" It's a bug and will be fixed in next build: Logged #840 Current workaround is to call "Open" first then call Append in another event. "Cristiano Testai" wrote in message news:q2oDt6ozLHA.2720@anaxagvs227... > Hi Farshad, > > I'm having an error that occurred after some changes in my code, which > should be very simple: > In SessionModule I have a ClientDataSet. In the Main module i inform > "Append" and the following Ajax error occurs: > > O79.recordType is not a constructor > > O79.add (O79.recordType new ({0: "", 1 ", " 2 :""})); O182 = new Object > ({id: "zero", width: 11, resizable: false, renderer: function () {return > "";}}); Ext.grid.Column O183 = new ({id:" 0 ", dataIndex: "0 ", renderer: > _rndcll_, header: " \ X3CP style = \ "background-color : # FFFFFF \ "\ > x3EOperador \ x3C / p \ x3E", width: 88, attr :"{}", editable: false, > editor: O6D}); Ext.grid.Column O184 = new ({id: "1 ", dataIndex: " 1 ", > renderer: _rndcll_, header: " \ X3CP style = \ "background-color: # FFFFFF > \" \ x3EHora \ x3C / p \ x3E ", width: 67, attr :"{}", editable: false, > editor: O6D}); Ext.grid.Column O185 = new ({id: "2", dataIndex: "2 ", > renderer: _rndcll_, header: "\ X3CP style = \"background-color: # FFFFFF \ > "\ x3EAtividade \ x3C / p \ x3E", width: 200, attr :"{}", editable: false, > editor: O6D}); ø180 Ext.grid.ColumnModel = new ({defaults: {menuDisabled: > true }, columns: [O182, O183, O184, O185]}); O180.nm = "ø180; O182.nm =" > O182 "; O183.nm =" O183 "; O184.nm =" O184 "; O185. nm = "O185"; > O5B.reconfigure (O79, ø180); O79.load ({params: {start: 0, limit: 5, > options: 2}}); > > The simple code below: > begin > dmSessionModule.cdsAtividade.Open; > dmSessionModule.cdsAtividade.Append; > end; > > Any idea? Delphi EX and UniGui 084. > > Cristiano Testai > . Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.