Hi,
I have a database configured as:
Name: db-xxx
Security db: Security
Schema db: Schemas
Triggers db: (none)
I create a new trigger by using the following code:
xquery version "1.0";
import module namespace tr = "http://marklogic.com/xdmp/triggers"
at "/MarkLogic/triggers.xqy";
declare namespace xdmp = "http://marklogic.com/xdmp";
tr:create-trigger(
'xxx',
'no description',
tr:trigger-data-event(
tr:collection-scope('tmp'),
tr:document-content('create'),
tr:pre-commit()
),
tr:trigger-module(xdmp:database('db-xxx'), 'tmp/', 'test.xqy'),
true(),
xdmp:default-permissions(),
false()
)
It runs correctly and returns an integer (the ID of the trigger
if I am right). So I expected to see the trigger in the console,
in the tab "Databases/db-xxx/Triggers", but this one is empty.
Did I miss anything? Can I provide more infos?
Regards,
--
Florent Georges
http://www.fgeorges.org/
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general