You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem, I want to save my entity if user submit the form clicking in a button, but when I set some value in entity object, my register is updated in my database !
entityObject.all().list(function(registers){varmyRegister=registers[0];// myRegister is updated in my databasemyRegister.someValue='value';// I want to update this register just if user click to submit a for like thisfunctionclickEvent(){persistence.add(myRegister);persistence.flush(function(){// the register has been saved !});}});
The text was updated successfully, but these errors were encountered:
I have a problem, I want to save my entity if user submit the form clicking in a button, but when I set some value in entity object, my register is updated in my database !
The text was updated successfully, but these errors were encountered: