[MarkLogic Dev General] About trigger in ML
Nizamuddin, Rashid
rnizamuddin at edmunds.com
Thu Jun 21 12:51:27 PDT 2007
Hello,
I know there is a functionality for using triggers in Marklogic.
We have a asset node with lot of child elements. One of them is
date-modified which needs to be updated whenever any element or
attribute is updated
Needed to know how to update the date-modified to the current date when
ever a change is done to any of the elements using triggers.
Is there a way.
i pasted on sample asset node
<asset id="30000001">
<file-size>65949</file-size>
<file-type>JPG</file-type>
<pixel-width>500</pixel-width>
<pixel-height>315</pixel-height>
<file-path>/2005/Scion/tC/Hatchback/Base/Edmunds/Colorized
Stills/</file-path>
<file-name>05.Scion.tC.Hbk.Base..azure.pearl.500.jpg</file-name>
<date-inserted>2005-03-28T00:00:00.0-0800</date-inserted>
<insert-user-id>1544803905</insert-user-id>
<date-modified>2005-03-28T00:00:00.0-0800</date-modified>
<date-published>2006-05-18T18:34:45.697724-07:00</date-published>
<publish-user-id>1211382781</publish-user-id>
<stage>PUBLISHED</stage>
<vendor-prefer>No</vendor-prefer>
</asset>
Thanks
Rashid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20070621/f0bed728/attachment.html
More information about the General
mailing list