IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Capture row deletion in table

    Posted Thu March 05, 2009 01:28 PM

    I have to capture the event of row deletion inside an async table. Using the remove button/icon there is no way touse client-side script.

    I need to update a summary field when rows are deleted.

    Regards,

    Eric


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 2.  RE: Capture row deletion in table

    Posted Thu March 05, 2009 02:39 PM

    hi
    you could have two options:
    1.- use an Async Command instead of the Remove Row Button to call an action that deletes the row. In that action you could update as well the summary.
    2.- Add an Script Block that captures the “delete” event and react accordingly. To capture that event:

    var table = CAF.model('#{activePageBean.clientIds['myTable']}');
    
    table.addRowChangeListener(function(tableId, rowId, eventType) 
    {
    if (eventType == "remove") 
    {
    // do something
    }
    }
    );

    hope this helps
    Javier


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 3.  RE: Capture row deletion in table

    Posted Thu March 05, 2009 04:08 PM

    Thank you, I finally found one other solution using Custom script to capture the click-event of the remove button.


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine