<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p>sorry, sent too fast:<br>
</p>
<p>technically, you could have schema handling mapping like this:</p>
<p> <attribute><br>
<c:ref>ri:yourAttribute</c:ref><br>
<outbound></p>
<p><strength>strong</strength><br>
</p>
<p> <expression><br>
<script><br>
<code><br>
Date now = new Date();<br>
return
com.evolveum.midpoint.util.MiscUtil.asXMLGregorianCalendar(now);<br>
</code><br>
</script><br>
</expression><br>
</outbound><br>
</attribute></p>
<p>But a better solution is to have the database automatically
update that field whenever the row changes in the DB. Because,
midPoint might not be the single tool which changes the DB.<br>
</p>
Ivan<br>
<br>
<div class="moz-cite-prefix">On 03/09/2017 03:17 AM, Prabhakara Rao
Doddapaneni wrote:<br>
</div>
<blockquote
cite="mid:2006272402.1734820.1489025864915@mail.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif;font-size:16px">
<div id="yui_3_16_0_ym19_1_1489025074681_21522" dir="ltr">I am
looking for the way to update the changelogcolumn with current
timestamp as when an account is created or updated in the
resource. I could not find the solution in documentation.
Can somebody help me how to do it? </div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ivan Noris
Senior Identity Engineer
evolveum.com
</pre>
</body>
</html>