[MarkLogic Dev General] About trigger in ML

Michael Blakeley michael.blakeley at marklogic.com
Thu Jun 21 17:45:14 PDT 2007


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
> General at developer.marklogic.com
> http://xqzone.com/mailman/listinfo/general

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4532 bytes
Desc: S/MIME Cryptographic Signature
Url : http://xqzone.marklogic.com/pipermail/general/attachments/20070621/72359360/smime-0001.bin


More information about the General mailing list