Jscript Ino insert and update examples

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

Kind regards,

Simon

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?

Unfortunately the supplied example only concerns a query.

Kind regards,

Simon

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?

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

Thanks for the other examples.

Kind regards,

Simon