PDA

View Full Version : Cannot override getRecordData in Proxy JsonWriter



Robert_SK
19 Jan 2020, 6:19 AM
I need to override getRecordData in Proxy JsonWriter to submite associated data to the server. See for example

https://stackoverflow.com/questions/21683847/in-extjs-how-to-handle-master-detail-with-updates-to-both-tables/22032927

In my older projects it works. In my newest project I get:

ext-all-rtl-debug.js?_dc=1579442100802:2744 Uncaught Error: Cannot override method getRecordData on Ext.data.writer.Json instance.
at new Ext.Error (ext-all-rtl-debug.js?_dc=1579442100802:2744)
at Function.raise (ext-all-rtl-debug.js?_dc=1579442100802:2803)
at Object.Ext.raise (ext-all-rtl-debug.js?_dc=1579442100802:2882)
at Ext.Configurator.configure (ext-all-rtl-debug.js?_dc=1579442100802:11697)
at constructor.initConfig (ext-all-rtl-debug.js?_dc=1579442100802:13255)
at constructor (ext-all-rtl-debug.js?_dc=1579442100802:95767)
at constructor.callParent (ext-all-rtl-debug.js?_dc=1579442100802:13104)
at constructor (ext-all-rtl-debug.js?_dc=1579442100802:99554)
at new Ext.data.writer.Json (ext-all-rtl-debug.js?_dc=1579442100802:13981)
at Ext.Factory.create (ext-all-rtl-debug.js?_dc=1579442100802:26127)

I tried to set
$configStrict to false on both the proxy and the jsonwriter, but it did not work., What should I do? Why am I suddendly getting this unexpected error without any reason?