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.  Document Count

    Posted Thu November 15, 2001 09:11 PM

    I am using the ActiveX API from a VBScript. I like to know

    1. how to identify if a document exists in Tamino. I am looking for somthing that is like the hasMoreElements method in Java Client API.

    My query looks like this:

    set doc = tamino.DoQuery(queryStr)

    set root = tamino.ReturnNodes(doc)


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


  • 2.  RE: Document Count

    Posted Tue November 20, 2001 10:13 AM

    I hope I’ve understand your question correct. You are looking for a method, that lets you know if one or more document of a specified kind exists in a tamino db?

    I’m doing that by getting all specific docs by a query like this:

    → set dom = tamino.DoQuery(“mydoc[@id=‘1’]”)

    and then getting total count of the query with:

    → lng = tamino.GetTotalCount(dom)

    If lng is greater then 0 there is a minimum of 1 document… :cool:

    let me know if that helps you…

    peter


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


  • 3.  RE: Document Count

    Posted Wed November 21, 2001 06:03 PM

    If you specify a boolean query you can get a boolena result.

    if you a query like this ‘Model2/@s=“a”’

    should should get the answer TRUE or FALSE
    xql:resultFALSE</xql:result> like this

    If you want a count

    a query would be ‘count(Model2[@s=“a”])’ you
    get an integer

    xql:result99</xql:result> like this


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