Hi Nanda,
Thanks for the suggesions.
I have tried to put the changes suggested in the sample update code.
But, icmbase.add() is giving the error : DGL7181A: The following operation is not supported in the context of the part. The part cannot be updated directly to the data store.
icmbase has been defined:
DKLobICM icmbase = (DKLobICM) datastoreICM.createDDO("ICMBASE", DKConstantICM.DK_ICM_SEMANTIC_TYPE_BASE);
Also, I tried
datastoreICM.checkOut(icmbase);
set the file and set the mimetype.
icmbase.update();
datastoreICM.checkIn(icmbase);
But, getting error at checkout step. Error: DGL7181A: The following operation is not supported in the context of the part. The part cannot be updated directly to the data store.
Where,
DKDatastoreICM datastoreICM = connect(getIcmDS(), request.getAuthentication().getUsername(), request.getAuthentication().getPassword());
------------------------------
Sanket Fating
------------------------------
Original Message:
Sent: Thu December 28, 2023 12:31 PM
From: Nanda Pilaka
Subject: Updating the content of the document in content management EE 8.5
Please see this -> https://www.ibm.com/docs/en/content-manager/8.7.0?topic=8-sresourceitemupdateicmjava
------------------------------
Nanda Pilaka
IBM Content Navigator Support
Original Message:
Sent: Wed December 27, 2023 10:07 AM
From: Sanket Fating
Subject: Updating the content of the document in content management EE 8.5
Hi team,
I am trying to update the content of the document. For the same I am using
ddo.update()
Where ddo is DKDDO object.
It's updating the metadata, but not the content. Please suggest how can I update the content of the document in CM EE 8.5?
------------------------------
Sanket Fating
------------------------------