Save method of form is inserting 2 duplicate records

I am using a multiview layout with a datatable that is bound to a form. The data is in a MySQL database and I’m using the “Standard” protocol of the PHP Data Connector. My issue is that when I Add a new record via my form and the form’s “save” method ( $$(“formview”).save(); ), it is inserting 2 “duplicate” records into the database instead of just one. I can’t seem to find why that is happening. Editing and saving an existing record works fine, it is just adding a new record that’s problematic. Can anyone help me figure this out?

Hello,

Can you please provide a snippet/code sample where the issue can be seen?
Here’s a default sample for such use-case, and as far as I can see it works as expected:
https://docs.webix.com/samples/14_dataprocessor/05_form.html

Here’s also a sample for the datatable: https://webix.com/snippet/4f523b83

FYI, I figured out the issue…

I had set the “save” option in my datatable view:
save:“connector->…/np/datatable.php”
AND
set the url in dataprocessor object:
//create the dataprocessor and connect the datatable.
var dp = new webix.DataProcessor({
master: $$(‘datatable1’),
url: “connector->…/np/datatable.php”
});
Apparently they are redundant so the record was being saved twice. I commented out the “save” option in my datatable view and that fixed the problem.