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.


#TechXchangePresenter
 View Only
  • 1.  Table \ List \ Modal

    Posted Thu April 28, 2011 01:08 PM

    Hello,

    I’m having a problem that I hope someone could help me with.

    The thing is,

    I have a Async Table that reads from a content provider. The provider is a provider for an ArrayList.

    Whenever I select a row from the table and press a button that I’ve named “Edit”, a modal pops up for editition.

    Inside that modal is an HTML input that its value is something like myprovider.selectedRows[0].text. The modal has lazy load and refresh on show.

    Supose that I’ve changed the text on the HTML input but now I want to reload back. I press the Cancel button (One-Way Toogle Button). The problem is that it seems that when I’m typing inside the HTML input I’m actually changing the text inside the content provider making it impossible to reload back changes I’ve made.

    In my opinion writing on the content provider itself should only be made only when pressing the Apply button (by making an action that would update the provider) and not dynamically when I’m typing.

    Any ideias?

    Thank you
    trp


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


  • 2.  RE: Table \ List \ Modal

    Posted Fri April 29, 2011 12:24 PM

    Just found another way to do it.

    Thanks


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


  • 3.  RE: Table \ List \ Modal

    Posted Mon May 02, 2011 07:46 PM

    If you have a chance, do you mind describing the alternative approach you took?

    Thanks,
    –mark


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


  • 4.  RE: Table \ List \ Modal

    Posted Tue May 03, 2011 12:05 PM

    The solution that I’ve found is:

    Before the modal pops ups I’ve made a copy of the selected row on the provider. Then I’ve changed the value on the HTML input so that it uses the COPY and not the selected row on the provider. Now if I want to reload back changes I just have to discard the copy, else if I want to apply changes I just have to replace the selected row on the provider with the changed copy.


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


  • 5.  RE: Table \ List \ Modal

    Posted Tue May 03, 2011 06:31 PM