Content Management and Capture

 View Only
Expand all | Collapse all

Updating the content of the document in content management EE 8.5

  • 1.  Updating the content of the document in content management EE 8.5

    Posted Wed December 27, 2023 10:07 AM

    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
    ------------------------------


  • 2.  RE: Updating the content of the document in content management EE 8.5

    Posted Thu December 28, 2023 12:31 PM

    Please see this -> https://www.ibm.com/docs/en/content-manager/8.7.0?topic=8-sresourceitemupdateicmjava



    ------------------------------
    Nanda Pilaka
    IBM Content Navigator Support
    ------------------------------



  • 3.  RE: Updating the content of the document in content management EE 8.5

    Posted Fri December 29, 2023 01:14 PM

    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
    ------------------------------