Keep in mind though, server and session fields are tied to one host only. If you want to share values across a database, easiest is to just put it in the database..
Cheers From: <[email protected]<mailto:[email protected]>> on behalf of Florent Georges <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Tuesday, September 1, 2015 at 10:43 AM To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Subject: Re: [MarkLogic Dev General] global variable usage Hi, I am not sure about the details of what you need to achieve, but it sounds like you want either Server or Session Fields: https://docs.marklogic.com/xdmp:set-server-field https://docs.marklogic.com/xdmp:set-session-field Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ On 1 September 2015 at 09:52, sweet frd wrote: Hi All, I need to set/get/maintain a variable value across different xquery call. I am declaring a variable in one module xquery file and importing the same in other xquery and set the variable value. In case of multiple calls to the xquery, will the value of the variable ll get assigned depend on the particular call or like java static the value will get changed based on the next call. Is the xquery variable is static or normal variable depends on the xquery call.?? Thanks, N. Sumathi. _______________________________________________ General mailing list [email protected]<mailto:[email protected]> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general -- <http://developer.marklogic.com/mailman/listinfo/general> Florent Georges <http://developer.marklogic.com/mailman/listinfo/general>http://fgeorges.org/ http://h2oconsulting.be/
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
