Manual setting nested data with edit()
Manual setting nested data with edit()
Hi Allan,
I have a standalone editor instace running with data fields like "pnom.230" and "pnom.400". Creating a dataset results in an object ( pnom = { "230": "value...", "400": "value..." } ) for this field which is absolutely correct.
However when trying to edit a dataset and manually set nested data like this:
.....
.edit( id )
.set( 'pnom', { "230": "newValue...", "400": "newValue..." } );
I get the following error: "TypeError: fields[n] is undefined".
If DTE is associated to a table which loads the data from an ajax source, the assignement of the nested data works as well.
Do I have to go the complicated way and loop over the nested data?
Thx for your help!
Best regards
Martin
Answers
Hi Martin,
Are you able to give me a link to the page showing the issue so I can take a look at what is going on please?
Thanks,
Allan