Re: [basex-talk] using apply-function within an updating function

2017-08-29 Thread r . stapper
Hi Michael, Th point is that I am looking for a generic solution which I thought I had found with the use of the apply-function. Most of my webservices take a record with more than one fieldvalue. By putting the fieldvalues in an json-formatted array on the client side and the use of the

Re: [basex-talk] using apply-function within an updating function

2017-08-28 Thread Michael Seiferle
Hi Rob, may I ask what you intented to do? Looks like you expect $dataRec to contain exactly one value, right? At least I think so because you called `db:create#1` in `fn:apply` which implies you expect the array to contain a single value. To create a single database use: > ``` >

[basex-talk] using apply-function within an updating function

2017-08-28 Thread r . stapper
Hi, I want to use the apply function within an updating webfunction, see[1] How can this be done? TIA, Rob Stapper [1] declare %rest:path("/cFactBank/dbCreate") %rest:PUT("{$dataRec}") %input:json("format=map") %updating function _:cFactBank.dbCreate ( $dataRec as array(*)