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

swapbox - List Item Provider for Selected Options

  • 1.  swapbox - List Item Provider for Selected Options

    Posted Mon March 24, 2008 10:24 AM

    I found this control swapbox rather strange. The Swapbox control provides a value property that seems to bind to a string or string .

    What I’ve done is

    a) placed a swapbox control
    b) added a Select Item Group Provider
    c) implemented a method to return SelectItem
    d) attached this list to the Item Group ‘value’ property
    e) attached a String to the ‘value’ property of swap box

    On UI it works as long as the user is on the page. When user goes to another page , I refresh to populate the SelectItem only with those values that are still available [excluding the selected ones]

    I get a strange error ( proabably I cant populate the items that are selected, whose values are bound to a string )

    My question is - how do we persist the state of selected/available options in a swap box


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


  • 2.  RE: swapbox - List Item Provider for Selected Options

    Posted Thu March 27, 2008 01:30 PM

    The Option Group value - the one bound to SelectItem is basically a selection choice (think about that Swapbox is an advanced version of multi-select list). So it has to return all choices: both selected and unselected.

    To preserve selection state you need to preserve a submitted value of swapbox control which are being submitted from any command action.

    Alex


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


  • 3.  RE: swapbox - List Item Provider for Selected Options

    Posted Thu March 27, 2008 04:22 PM

    The Control Value field of swap box takes a String which is essentially the list of swapped values.


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