Have you read chapter 24 of the Developer's Guide?

http://developer.marklogic.com/pubs/

-- Mike

Nizamuddin, Rashid wrote:
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




------------------------------------------------------------------------

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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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

Reply via email to