Content Management and Capture

 View Only
  • 1.  How to Add delete functionality in daeja viewone virtual

    Posted Tue October 20, 2020 03:46 AM

    Hi , we have a requirement where we need to add a delete button in daeja virtual to delete the opened document. We can create a custom button using plugin. However, can icn delete action be called and used in this case or is it something which needs to be created. Can any daeja resource suggest on how this can be accomplished. Thanks



    #DaejaViewONE
    #Support
    #SupportMigration


  • 2.  RE: How to Add delete functionality in daeja viewone virtual
    Best Answer

    Posted Wed October 21, 2020 05:26 AM

    Hi Amit,

    Daeja supports custom buttons on the toolbar. You may use the Viewer Toolbar Plugin (https://github.com/ibm-ecm/ibm-content-navigator-samples/tree/master/ViewerToolbarPlugin). I've added a new custom button that performs ICN default delete action on the document and closes the viewer. See readme of the plugin for more information.

    Regards,

    Angie



    #DaejaViewONE
    #Support
    #SupportMigration


  • 3.  RE: How to Add delete functionality in daeja viewone virtual
    Best Answer

    Posted Wed October 21, 2020 01:55 PM

    Hi Angie,


    I tested the plugin, but the button is not appearing in daeja toolbar. I observed that Index is looking for bar1afterButton4 but cannot find so returns -1. So do we have to create a button. And how to add the button after Print button.


    Regards,

    Amit



    #DaejaViewONE
    #Support
    #SupportMigration


  • 4.  RE: How to Add delete functionality in daeja viewone virtual
    Best Answer

    Posted Thu October 22, 2020 06:35 AM

    Hi Amit,

    You may check your JSON response of "/v1/viewoneAction" request and get the index of the last button (bar1afterButtonN) on the top toolbar. Revise the ViewOneActionResponseFilter with the index.

    Regards,

    Angie



    #DaejaViewONE
    #Support
    #SupportMigration


  • 5.  RE: How to Add delete functionality in daeja viewone virtual
    Best Answer

    Posted Thu October 22, 2020 07:05 AM

    Hi Angie,

    Thanks for the response. I checked the JSON response but didn't find any bar1afterButton param value. Also, can you add a function check privileges to eval function, because right now icon is being enabled even though user does not have delete privileges.


    Thanks and Regards,

    Amit



    #DaejaViewONE
    #Support
    #SupportMigration


  • 6.  RE: How to Add delete functionality in daeja viewone virtual
    Best Answer

    Posted Fri October 23, 2020 08:43 AM

    Hi Amit,

    I've delivered changes to enhance the plugin.

    You may configure the position of the buttons, either to append to the toolbar or to insert to the left of the toolbar. Note that ViewONE does not support adding the custom buttons to the middle of the buttons list.

    Evaluation is added to check if user has the delete privilege.

    Regards,

    Angie



    #DaejaViewONE
    #Support
    #SupportMigration


  • 7.  RE: How to Add delete functionality in daeja viewone virtual
    Best Answer

    Posted Mon October 26, 2020 03:00 PM

    Thanks a lot Angie,

    The configuration is working perfectly.


    Regards,

    Amit



    #DaejaViewONE
    #Support
    #SupportMigration