Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Removing "Move to In-Basket" logic/button

    Posted Tue October 15, 2024 02:17 PM
    Edited by Christopher Hegel Tue October 15, 2024 02:20 PM

    Good afternoon, I have been tasked with removing the "Move to In-Basket" button from the step processors we have in our content navigator instance. I was able to find some information here:  https://www.ibm.com/support/pages/can-move-basket-button-be-removed-content-navigator-step-processor

     

    However, when I removed any/all references to the "Move to In-Basket" present in:

    "ecm/widget/process/StepProcessorLayout",

    "dojo/text!custom/templates/EmbeddedViewerStepProcessorLayout.html"

    And the button appeared to still show up in content navigator. Our custom code has no references to the Move In Basket button so I am not sure where else it could be being generated or where to go to turn it off.
     

     

    Does anyone have any input/insight as to what could be going on? I'd greatly appreciate any assistance/input on this.

     

    Thanks!

    Chris



    ------------------------------
    Christopher Hegel
    ------------------------------



  • 2.  RE: Removing "Move to In-Basket" logic/button

    Posted Wed October 16, 2024 06:12 AM

    Hi,

    Are you making the changes directly into the WebSphere "installedApps" files, or are you making changes into the "/configure/explodedformat" tree and then building and redeploying your Navigator EAR file?
    I believe that all files under the "ecm" folder are compressed into an "ecm.js.jgz file as part of the EAR build process and it is this file that is loaded and used in Navigator. So making changes directly under "installedApps" will not be used by Navigator (as they won't exist in ecm.js.jgz).

    Making changes under the "explodedformat" tree still might not work, but it's where I would start experimenting next.

    If you go down this route, make sure you save any changes to another location. They will get wiped when you install a newer version of the software (patching / upgrade / etc.)

    Good luck!!

    Dave.



    ------------------------------
    Dave Ward
    ------------------------------



  • 3.  RE: Removing "Move to In-Basket" logic/button

    Posted Wed October 16, 2024 07:13 AM
    Hi Christopher,
    You should control this using your own plugin. There you can either remove the button from the toolbar via an aspect after executing the addProcessButtons function or you can overwrite the function and use your own StepProcessorToolbar.
     
    As Dave has already explained: your manual changes in the deployed application are not included in the compressed scripts. You can test load the uncompressed Dojo classes using the additional URL parameter &debug=true.
    But: direct code adjustments are not recommended. If possible, use a plugin - this also works for StepProcessors. Then you can control on which desktop the StepProcessor should be customized and you will also have fewer problems with updates from the ICN.
    regards
    Christoph


    ------------------------------
    Christoph Sünderkamp
    ------------------------------



  • 4.  RE: Removing "Move to In-Basket" logic/button

    Posted Wed October 16, 2024 12:35 PM

    Thank you guys for the help! It looks like the solution was to edit the custom step processor javascript logic. The solution that I came up with that seems to work is:

    aspect.after(this, "addResponseButtons", function(evt){

    this.processorButtonBar._buttons[0].destroy();

    });

    When placing that same logic in a function for after "addProcessButtons", it seems to not destroy the object but placing it in that after "addResponseButtons" works! I really appreciate the help!!!

    Thanks,

    Chris



    ------------------------------
    Christopher Hegel
    ------------------------------