Hi
I’m using the form connector to load data into a form like so:
patientsForm.load("php/get_patient_data.php?id="+rowId);
The data loads fine and when i save it, it updates the db.
But now, let’s say i want to insert this data instead of updating it, creating a duplicate record. How can i achieve this? After looking through the forum I added resedtDataProcessor before the save() call:
patientsForm.resetDataProcessor("inserted");
patientsForm.save();
It doesn’t seem to work, can anyone help me?
Thanks