Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82602

Unable to programmatically set value when using editor with submit mode = changed

$
0
0

Hello Allan,

I'm working with editor, server side, without table (in standalone mode) and with submit option = 'changed'.
When I try to use the set() method programmatically on a field, it sometimes doesn't trigger any ajax POST.

editor.edit('row_12',false);
editor.set('fieldName','value');
editor.submit();

See the use case I previously posted there : https://datatables.net/forums/discussion/37187 .

In this topic you explained to me that it was the expected behavior when using "changed" submit option, and suggested that I used "all' instead.

The problem is that I've got thousand fields on my standalone page, and I don't want all data transmitted when updating a single field ( firstly because that would result in user erasing data modified by other users, and secondly because it allows me to log server side which field has been updated by whom).

This issue with the set( fieldNames , value ) method is really annoying, and I'm constantly looking for alternatives but none of them are satisfying.

Wouldn't it be possible to add a parameter to the set method, (or maybe to the submit method) to allow the edit request to be sent when a field has been set programmatically. Is there another alternative that I haven't thought about.

Thank you for your time .

Julian


Viewing all articles
Browse latest Browse all 82602

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>