JSDO: saveChanges requires CREATE, UPDATE and DELETE operati

Posted by agent_008_nl on 26-May-2015 07:58

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.

 

Posted by egarcia on 26-May-2015 08:47

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

Posted by egarcia on 26-May-2015 08:47

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.

Posted by agent_008_nl on 26-May-2015 12:16

Thanks for your answer Edsel.

This thread is closed