> > So we were right about all except that the eval or invoke
> should be run against the database that actually stores the
> triggers, not the documents database, as is stated on top of
> Triggers documentation:
> >
> > http://developer.marklogic.com/pubs/4.1/apidocs/Triggers.html,
> >
> > "The trigger functions should all be run against the
> triggers database for the database in which the content is stored."
>
> Yeah - that's the reason for using eval/invoke, so that you
> always run the trigger creation against the triggers database:
>
> let $query := 'your trigger creation code'
>
> return (xdmp:eval($query, (), <options xmlns="xdmp:eval">
>    <database>{xdmp:database('the-triggers-db')}</database>
>                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>  </options>), 'Done')

Sorry, overlooked that in my second reply. But then we weren't wrong afterall? 
:-P

Geert


drs. G.P.H. (Geert) Josten
Consultant


Daidalos BV
Hoekeindsehof 1-4
2665 JZ Bleiswijk

T +31 (0)10 850 1200
F +31 (0)10 850 1199

mailto:[email protected]
http://www.daidalos.nl/

KvK 27164984

P Please consider the environment before printing this mail.
De informatie - verzonden in of met dit e-mailbericht - is afkomstig van 
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit 
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit 
bericht kunnen geen rechten worden ontleend.

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to