JSDO: saveChanges requires CREATE, UPDATE and DELETE operations to be defined - Forum - Mobile - Progress Community

JSDO: saveChanges requires CREATE, UPDATE and DELETE operations to be defined

 Forum

JSDO: saveChanges requires CREATE, UPDATE and DELETE operations to be defined

This question is answered

oe 11.5.0, progress.jsdo.3.1

In my jsframework I call jsdo.saveChanges(true). If I have all operations including create, update and delete in my catalog everything is ok, the submit method at the backend gets called instead of the update when I execute one update. But when I remove the CREATE, UPDATE and DELETE operations and regenerate the catalog I get the following jsdo error:

Error executing function in dataModel.updateData: saveChanges, exception: JSDO: saveChanges requires CREATE, UPDATE and DELETE operations to be defined.

What is going on here, I should not need these operations.

Regards, Stefan.

 

Verified Answer
  • Hello Stefan,

    The exception that you are getting is thrown because the code for saveChanges() is validating that a a certain operation is present.

    As you have mentioned, you should not get this exception when using saveChanges(true). Only SUBMIT is required.

    We already have a bug report logged to correct the validation.

    Please let me know if you need more information.

    Thank you and regards.

All Replies
  • Hello Stefan,

    The exception that you are getting is thrown because the code for saveChanges() is validating that a a certain operation is present.

    As you have mentioned, you should not get this exception when using saveChanges(true). Only SUBMIT is required.

    We already have a bug report logged to correct the validation.

    Please let me know if you need more information.

    Thank you and regards.

  • Thanks for your answer Edsel.