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.  Double click on table row

    Posted Wed August 01, 2012 10:00 AM

    Hi,

    Is there a way to invoke an event/action when a row of a data table is double clicked? Basically I need to update the content (bring details) when user double clicks the row (rather than select a row). Any ideas? :slight_smile:

    Thanks in advance


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


  • 2.  RE: Double click on table row

    Posted Wed August 01, 2012 03:48 PM

    You should be able to do that with a “Custom Script” control.

    Set the “For” property to the id of the table control.
    Set “Event” property to “ondblclick”

    Set the “Code” property to something like this:

    
    var clickedOn = event.srcElement;
    
    //walk up the DOM to find the row element containing the element that was clicked on
    var parent = $(clickedOn);
    while (parent != null && parent.tagName != "TR") {
    parent = parent.parentNode;
    }
    if (parent) {
    //make sure the row was not in the table header or footer.
    if (parent.parentNode.tagName == "TBODY") {	
    var rowId = parent.id;
    alert("DblClicked on row: " + rowId);
    //TODO: do something with the clicked row here.
    }
    }

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


  • 3.  RE: Double click on table row

    Posted Tue August 07, 2012 07:24 AM

    Great thanks for answer. That’s works just fine :slight_smile:


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