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.  getRowSelectedCount() reset

    Posted Fri May 22, 2015 11:15 AM

    I have an application that uses a list and with each selection the displayed Picklist has the provider data updated for the table. When I get the getRowsSelectedCount() value, it continues to increase when I click the selected check box, even though there is only X items selected, or if it is 0.

    How do you reset this counter value and have it start over at 0? I saw a post somewhere that getRowSelectedCount().clear() is supposed to work, but that threw an error that it did not have the clear method available.

    The application is within 8.2 Fix 18.

    Daryl


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


  • 2.  RE: getRowSelectedCount() reset

    Posted Fri May 22, 2015 12:16 PM

    From the server-side java code, get your table content provider and call the API to set the selected row ids to an empty collection:

    tableProvider.setRowSelectedIds(Collections.emptyList());

    Or from client-side javascript code, get your table model and call the API to unselect all items :

    var tableModel = CAF.model('#{caf:cid("yourTableId")}');
    tableModel.selectNone();

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


  • 3.  RE: getRowSelectedCount() reset

    Posted Fri May 22, 2015 12:23 PM

    Eric, thank you so much. That was it. I used the selectNone() and I am in business.

    Daryl


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


  • 4.  RE: getRowSelectedCount() reset

    Posted Fri May 22, 2015 12:28 PM

    Eric,

    Do you have any recommendations for a JSF or more advanced webMethods CAF class? I am looking to take a course to get more up to speed on some of the more advanced things related to webMethods CAF/JSF.

    Thank you

    Daryl


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