webMethods

webMethods

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.  Scrolling list of complex records

    Posted Thu October 20, 2011 08:46 AM

    Hi all,
    I have a requirement to create an app which can display a scrolling list of complex items, dynamically created as a result if an IS service call.

    Each row in the table needs to display data such as:
    A photo
    Name
    Date of Birth
    Etc.

    So probably it would have the photo on the left an then two or three lines of data to the right.

    What is the best way to do this with Native UI controls?

    Oh and selecting one would transition to a details page, so we need each row to be a button or at least to contain a button (maybe the photo?)

    Thanks all…

    Ian


    #mobile
    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 2.  RE: Scrolling list of complex records

    Posted Thu October 20, 2011 10:42 AM

    Hi Ian,

    Perhaps its best that multiple IS calls are made

    1.   Call to get a list of names (and URLS of the images for example) –populate your first view dynamically
      
    2.   To return the details per person – populate your details screen
      

    Since wmMobileDesigner (aka Bedrock) leverages Java it would be trivial to write a proc that dynamically builds up and displays a list of NativieUI objects (eg swing - Dynamic check boxes in java - Stack Overflow or http://www.exampledepot.com/egs/java.util/coll_Lists.html ) using REST calls to IS as its source.

    If the result set returned is too large you may want to look into paging the response (a little more complex IS service, but doable)

    Perhaps this demo I built recently may assist you (http://bitly.com/wmMobileDesignerGB)– let me know if you would like its source code for reference.

    George Bonev


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods
    #mobile


  • 3.  RE: Scrolling list of complex records

    Posted Thu October 20, 2011 11:29 AM

    Thanks George,

    That’s pretty much what I thought. The bit I’m not sure about is how to use NativeUI to positon the photo on the left, then have the other information to the right, all within a scrollng panel.
    Is this easy?

    Thanks

    Ian


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB
    #mobile


  • 4.  RE: Scrolling list of complex records

    Posted Thu October 20, 2011 01:47 PM

    Hi Ian,

    You should be able to use a table to deal with this - you could
    potentially have 2 or 3 columns (photo / details / button) and then
    however many rows are needed for the info.

    Regards,

    Nick.


    #webMethods-General
    #mobile
    #Integration-Server-and-ESB
    #webMethods