Quantcast
Viewing all articles
Browse latest Browse all 8623

Re: Recording the date that a property (e.g. description) was last changed

Hi Georges.

 

If you want toidentifythe last changemade ​​ona specific propertyhere are the steps.

This examples has been made with a physical model. You can do the same thing with Logical Model

 

Create MetaClass Table

Create an Event Handler Initialize

 

Image may be NSFW.
Clik here to view.
Initialize.jpg

 

Create a Validate Handler

 

Image may be NSFW.
Clik here to view.
Validate Handler.jpg

 

Create Extended Attributes : Date, Old Comment and Time

Image may be NSFW.
Clik here to view.
Date field.jpg

 

Image may be NSFW.
Clik here to view.
Old Comment field.jpg

 

Image may be NSFW.
Clik here to view.
Time Field.jpg

 

Create Form with Attributes : Date and Time

Image may be NSFW.
Clik here to view.
Date and Time Form.jpg

 

The result : each time the comment field is modified the date and time fields are set.

 

You can see live the date and time fields modification. If you modify the comment field you can see the new date and time.

 

If you press Apply or OK button the date and time are saved. If you press Cancel button the date and time are not saved.

 

If you modify others fields the date and time are not modified.

 

Image may be NSFW.
Clik here to view.
Result.jpg

 


Note : If you want tobe moresophisticatedyou couldalso savethe old dateand time.So ifthe personadds a word tofieldcommentandclearsbefore saving.You couldtellthat therewas noreal changeon the way backwith the old date and time. To do add an 'else' in validate event handler

Itthere'sseveral alternativesyou canperformaccording to yourneeds.



Viewing all articles
Browse latest Browse all 8623

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>