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.  Looping data from dbms

    Posted Mon August 23, 2004 11:02 PM

    Hi…

    I have some problem for looping data from data base. I used the %loop% syntax but it still doesn’t work.

    I used the adapter service to select table from oracle dbms,in developer I can run this adapter and it running successful.

    After that I made dsp for client, but when I tried to made it, I can’t Invoke and looping this data.

    Is there somebody can help me …
    “URGENT”…


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


  • 2.  RE: Looping data from dbms

    Posted Tue August 24, 2004 02:37 AM

    Hi,
    how did you write your %loop% ?

    One Example from me: The Adaptor-Service has the output: SteuerDaten_ASOutput/results
    %loop SteuerDaten_ASOutput/results%
    %value SomeValue%
    %endloop%

    Hope that helps
    Ralf


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


  • 3.  RE: Looping data from dbms

    Posted Tue August 24, 2004 07:56 AM

    For Exsample I have Adapter Service name Viewdata in package Exercises.
    The Output from this adapter is “ViewdataOutput”.
    And I run in developer the result is array string from table. shown like below:

    ViewdataOutput 
    |-results 
    |-results[0] 
    |-FIELD1 : abc 
    |-FIELD2 : 123 
    |-FIELD3 : xxx 
    |-FIELD4 : yyy 
    |-results[1] 
    |-FIELD1 : abc 
    |-FIELD2 : 123 
    |-FIELD3 : xxx 
    |-FIELD4 : yyy 
    ....etc 
    

    is the dsp code like this?

     
    
    ......
    
    %invoke Exercises:Viewdata% 
    %loop Exercises_Viewdata/results% 
    %value FIELD1%
    %value FIELD2%
    %value FIELD3%
    %value FIELD4%
    
    %ENDLOOP%
    %ENDINVOKE%
    
    .....
    
    

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