Cannot read properties of null

Martin Obongita martin.obongita at yahoo.com
Sun Feb 5 16:00:57 UTC 2023


 This is how I am assigning the superclass:
To add records:Do $cwind.$getJSGeneralInfoEntryClassName(lClassName)    
Do iCWinRef.$classname.$assign(lClassName)    

Do iJSDataListHeaderEntryRef.$superclass.$assign('jsDataListHeaderAdd')    

To edit records:
Do $cwind.$getJSGeneralInfoEntryClassName(lClassName)    
Do iCWinRef.$classname.$assign(lClassName)    
Do iJSDataListHeaderEntryRef.$superclass.$assign('jsDataListHeaderEdit')    



Martin.


    On Sunday, February 5, 2023 at 06:56:40 PM GMT+3, Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:  
 
 Hi,
How do I debug javascript "Cannot read properties of null" errors found in the inspect...console...
core_all_comps.bundle.js:10 Error: Exception occurred when processing server response: Cannot read properties of null (reading 'lstDef') (at 18:41:19.963)core_all_comps.bundle.js:10  omnis_form.getDataIndex  -- at omnis_form.getDataIndex (http://127.0.0.1:61537/jschtml/scripts/core.bundle.js:3:56938)core_all_comps.bundle.js:10  _e.updateCtrl  -- at _e.updateCtrl (http://127.0.0.1:61537/jschtml/scripts/all_comps.bundle.js:3:78404)core_all_comps.bundle.js:10  F.update  -- at F.update (http://127.0.0.1:61537/jschtml/scripts/core_all_comps.bundle.js:2:18784)core_all_comps.bundle.js:10  _e.init_ctrl_inst  -- at _e.init_ctrl_inst (http://127.0.0.1:61537/jschtml/scripts/all_comps.bundle.js:3:76513)core_all_comps.bundle.js:10  omnis_form.installChildren  -- at omnis_form.installChildren (http://127.0.0.1:61537/jschtml/scripts/core.bundle.js:3:49691)core_all_comps.bundle.js:10  aa.init_ctrl_inst  -- at aa.init_ctrl_inst (http://127.0.0.1:61537/jschtml/scripts/all_comps.bundle.js:17:356492)core_all_comps.bundle.js:10  omnis_form.installChildren  -- at omnis_form.installChildren (http://127.0.0.1:61537/jschtml/scripts/core.bundle.js:3:49691)core_all_comps.bundle.js:10  C.commsParamsExecOpenForm  -- at C.commsParamsExecOpenForm (http://127.0.0.1:61537/jschtml/scripts/core.bundle.js:3:144984)core_all_comps.bundle.js:10  C.commsParamsExecOpenSubform  -- at C.commsParamsExecOpenSubform (http://127.0.0.1:61537/jschtml/scripts/core.bundle.js:3:146191)core_all_comps.bundle.js:10  C.commsParamsExec  -- at C.commsParamsExec (http://127.0.0.1:61537/jschtml/scripts/core.bundle.js:3:132266)
This error is returned when I open a remote form with a superclass that is assigned two remote forms.
For example, a superclass to add records and a superclass to edit records for an entry form.
I suspect that this error is because I am assigning the superclass after assigning the classname.
I could be wrong on this because I am not sure of the correct order of assigning the classes.

Martin.
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
  


More information about the omnisdev-en mailing list