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
Expand all | Collapse all

Paging, Retrieving specified number of tamino records

  • 1.  Paging, Retrieving specified number of tamino records

    Posted Wed May 26, 2004 03:42 AM

    Hi all,

    I am very new to tamino. I need some help with tamino java API with an archiving project.

    Description:
    tools: JSP, Tamino Java API
    I need to display a huge range of data from tamino for user to choose.
    I am thinking of writing a jsp paging function using tamino java API that display maybe 100 records per page.


    I tried the inoid:
    1. Inoid
    I could use the ino:id to query a range of resultsets. I don’t like the idea as i will need to keep track of the inoid(inoid changes with deletion) and formulate new queries.

    Questions: Can i used the cursor function in the TStreamAccessor?
    ( tried the TStreamAccessor, i keep getting a invalid cursor for an xquery when usig the fetchcursor function).

    Is this the right way to do it? Or can someone direct me to some other methods?

    regards,
    Lenden


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


  • 2.  RE: Paging, Retrieving specified number of tamino records

    Posted Wed May 26, 2004 01:29 PM

    Hi Lenden,

    Yes, u can use cursor mechanism instead of jsp paging function.

    To specify the quantity of records u need to fetch, you need to use “query(query,quantity)” API.

    e.g.:-TResponse response = accessor.query(query, quantity);

    For the code u can refer to the previous Cursor related problem in the forum itself.

    Regards
    sonal


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