Content Management and Capture

Content Management and Capture

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

 View Only
  • 1.  Get/set properties in Launch/Task Page using Plugin

    Posted 09/13/21 04:10 AM

    In my plugin, I am using these service /p8/getLaunchParameters and /p8/getStepParameters in response filter, later calling propertyEditor to add the button to the property in Launch and Task Page.

    onclicking of this button a dialog opens, there i perform some operation. And there i should be able to set value to all the properties in that page(Launch/Task ). Enabling button and functionality is written in mainplugin.js file, But here i am not able to set value for other properties (other than the selected one) once i click "Ok"in that Dialog

    I want to know which aspect I can use for Launch and Task Page, And how to get all properties and set value



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: Get/set properties in Launch/Task Page using Plugin

    Posted 09/13/21 02:58 PM

    Or any other way other than aspect to get and set properties in Launch and Task Page in mainplugin.js file in ICN plugin



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 3.  RE: Get/set properties in Launch/Task Page using Plugin

    Posted 09/16/21 05:20 PM

    You could add something like the following to the mainplugin.js file. It will be called after the "Ok" button is clicked in the property editor Dialog. Note that if the property editor does not display a dialog, it will be called as each character is typed in the editor.

    // access the work item properties after a property has been updated

    aspect.after(WorkItemPropertiesPane.prototype, "validate", function(focus, onEditStatus, onSaveStatus) {

    console.log("Enter - after WorkItemPropertiesPane::validate");

    if (this._workItem && this._workItem.attributes) {

    var numAttributes = this._workItem.attributes.length;

    }

    console.log("Exit - after WorkItemPropertiesPane::validate");

    });



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 4.  RE: Get/set properties in Launch/Task Page using Plugin

    Posted 09/23/21 09:13 AM

    Thanks for the response.

    I am able to go inside the loop. But how can I get and set value into properties inside this aspect?



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 5.  RE: Get/set properties in Launch/Task Page using Plugin

    Posted 09/23/21 11:12 PM

    I might be easier to provide advice if we understood your use case(s).

    Would you please describe the requirements?

    Another way to manipulate the step properties is to create a custom plugin that provides a response filter for "p8/completeStep" and "p8/unlockStep" requests. These requests will be performed when a user completes or saves a work item (respectively).



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration