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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Problems getting result total from cursor

    Posted 11/14/05 02:44 PM

    What happens is the following.
    Using an Xquery I retrieve a browcursor. Using the following construction:

    _browse.AppendFormat(“_xquery={0}&_cursor=open&_scroll=no&_sensitive=vague&_position={2}&_quantity={3}&_count=cheap”, System.Web.HttpUtility.UrlEncode(cursor.Query), _sort.ToString(), position, cursor.CursorSize);

    But I don’t seem to be able to get the total number of documents found. I thought I’d look for a _count property, but that’s not there.

    Any help would be greatly appreciated.


    #webMethods-Tamino-XML-Server-APIs
    #API-Management
    #webMethods


  • 2.  RE: Problems getting result total from cursor

    Posted 11/22/05 09:34 AM

    Isn’t there a xf:count function that does what you require?


    #webMethods
    #webMethods-Tamino-XML-Server-APIs
    #API-Management


  • 3.  RE: Problems getting result total from cursor

    Posted 11/22/05 10:03 AM

    Well, I don’t know about that, but I was looking for an universal solution and found the following…

    let $count : = ({_xquery}) return count($count)

    where the _xquery is the xquery used for the cursor.

    And this works pretty nicely actually.


    #API-Management
    #webMethods
    #webMethods-Tamino-XML-Server-APIs