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.  Join with multiple collections

    Posted Wed November 23, 2005 10:29 AM

    Hello,

    How can I joint multiple collections in a Query?

    i have tried:

    
    for $a in input()/coll1,
    for $b in input()/coll2
    where $a/key = $b/key
    return <result> { $a } </result>
    

    but in the interactive manager i have too set a collection. It isnt possible to set 2 collections so this won’t work… Or am i doing something wrong?

    Help will be appreciated :wink:

    Thanks

    Stefan.


    #webMethods
    #API-Management
    #Tamino


  • 2.  RE: Join with multiple collections

    Posted Wed November 23, 2005 10:32 AM

    By the way… I’m working with tamino version 4.1.1.1 :wink:


    #API-Management
    #webMethods
    #Tamino


  • 3.  RE: Join with multiple collections

    Posted Wed November 23, 2005 10:50 AM

    Hi,
    With Tamino Version 421 or later you can use the “collection()” function:

    
    for $a in collection("col1")/document, $b in collection("col2")/document
    where $a/key = $b/key
    return <result> { $a } </result> 

    #Tamino
    #webMethods
    #API-Management


  • 4.  RE: Join with multiple collections

    Posted Wed November 23, 2005 10:58 AM

    sorry… Im using an older version… 4.1.1 any other ideas?

    Thanks for your’e reply anyway. :wink:


    #API-Management
    #Tamino
    #webMethods