BPM, Workflow, and Case

 View Only
Expand all | Collapse all

Script Adapter - Property Update

  • 1.  Script Adapter - Property Update

    Posted Mon August 09, 2021 09:14 AM
    Scenario:
    I have two choice list fields (A and B) in a property widget.  When a user select a value for choice list A, I need to populate choice list B.

    I have tried using the icm.updateProperty event and am able to set the payload with the updated fields, but they do not get reflected back to the property widget.
    I couldn't get onChoiceListChanged() or onValueChanged() to work either.

    Can someone provide me with a  simple sample how to do this?


    ------------------------------
    Robert
    ------------------------------


  • 2.  RE: Script Adapter - Property Update

    IBM TechXchange Speaker
    Posted Mon August 30, 2021 08:37 AM
    Robert, did you get an answer to your inquiry yet?  If not, I can pass this along to the BAW Product Manager...

    ------------------------------
    DAVID Jenness
    ------------------------------



  • 3.  RE: Script Adapter - Property Update

    Posted Mon August 30, 2021 08:49 AM
    We figured it out. Ended up using the icm.updateProperty event and as we were dealing with the launch page, had to use the payload.caseEditable.taskEditable.launchStep and not just the taskEditable.
    We also used the both onChoiceListChanged() and onValueChanged() depending on the situation.

    Unfortunately I don't have a simple excerpt to add to this thread.


    ------------------------------
    Robert rhoida@pyramidsolutions.com
    ------------------------------