12
Views
2
Comments
Javascript error when adding new record in EditableTable

Here is the error:

Error: Failed to execute 'setAttribute' on 'Element': ''' is not a valid attribute name.
    at attr (_osjs.js?9_1_300_0:18)
    at Function.access (_osjs.js?9_1_300_0:18)
    at a.fn.init.attr (_osjs.js?9_1_300_0:18)
    at OsAddNewAttributes (_osjs.js?9_1_300_0:5)
    at OsExecuteTableRecordOperation (_osjs.js?9_1_300_0:5)
    at OsExecuteJSONUpdate (_osjs.js?9_1_300_0:5)
    at OsLoadNextScript (_osjs.js?9_1_300_0:5)
    at OsExecuteJSONUpdate (_osjs.js?9_1_300_0:5)
    at OsLoadNextScript (_osjs.js?9_1_300_0:5)
    at OsExecuteJSONUpdate (_osjs.js?9_1_300_0:5)

The insert action is never called.


2023-12-07 07-51-40
Remco Dekkinga
 
MVP

Hi Stanley,

Can you share an example OML where this error can be reproduced?

Kind regards,

Remco Dekkinga

UserImage.jpg
Stanley Mok

After some investigation I found out somehow the javasripts under Widget\EditableTables are missing:

In another app using EditableTables:

My question now is how to get the javascripts back without throw away all the work put in building the EditableTable?

Thanks,

Stanley

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.