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
  • 1.  Jscript Ino insert and update examples

    Posted Wed February 27, 2002 02:36 PM

    Does anyone have examples using the Ino JScript API to insert and update into Tamino server?

    Kind regards,

    Simon


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


  • 2.  RE: Jscript Ino insert and update examples

    Posted Wed February 27, 2002 05:17 PM

    There is someting about it in the Tamino Documentation at

    Help/jsapi/apiref.htm#d2e2225

    and in the Jscript example

    at Help/jsapi/apiexam.htm#apiexam.

    do you need a bit more?


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


  • 3.  RE: Jscript Ino insert and update examples

    Posted Thu February 28, 2002 11:42 AM

    Unfortunately the supplied example only concerns a query.

    Kind regards,

    Simon


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


  • 4.  RE: Jscript Ino insert and update examples

    Posted Thu February 28, 2002 03:23 PM

    The example does a query then does multiple updates using the process method.

    If you want an example on an update WITHOUT doing a query first. - how about this
    var dbname=“http://localhost/tamino/mydb/Telephone”;
    var dom = new ActiveXObject(“Microsoft.DOM”);
    dom.loadXML(“<a/”> ); //very simple document
    var client=new TaminoClient(dbname);
    var r=client.process(dom);
    if (r.errorNo)
    alert(r.errorText);

    or
    var inoid=1234;
    var r=client.update(dom,inoid);
    if (r.errorNo)
    alert(r.errorText);


    I am getting anywhere with this?


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


  • 5.  RE: Jscript Ino insert and update examples

    Posted Fri March 01, 2002 10:58 AM

    Ah! I see the “process” now. Clearly my eye skipped over it on initial inspection.

    Thanks for the other examples.

    Kind regards,

    Simon


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