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
Expand all | Collapse all

var rows = table.list(); NOT workiing

  • 1.  var rows = table.list(); NOT workiing

    Posted Wed December 28, 2011 08:13 AM

    Hi

    I am trying to get the row id

    Script block -

    var button = CAF.model(“#{caf:cid(‘addRowButton’)}”);
    var table = CAF.model(‘#{activePageBean.clientIds[‘asyncTable2’]}’);
    var rows = table.list()

    var _onclick = button.element.onclick;

    button.element.onclick = function() {
    alert(“jk”);
    };

    ---------when i add the line ------- var rows = table.list() , alert wont come

    Please help .

    Regards
    Jasmeen Kaur

    _onclick();   
    

    };


    #webMethods
    #BPM
    #webMethods-BPMS


  • 2.  RE: var rows = table.list(); NOT workiing

    Posted Sun January 08, 2012 01:11 PM

    wrong forum: place it on MWS, CAF & Task Engine

    also, an error will stop your script when it occurs.

    you probably got an error because the table is not yet defined when you call table.list()?

    check the forum for the use of the onLoad and place the Script block on the bottom of your form.

    Happy coding (and remember, Firebug is your friend).
    Best Regards


    #webMethods-BPMS
    #webMethods
    #BPM