Get ChangeDate of Entity
Author: TimoMeister
Publication Date: 4/8/2021 15:51
I wondered if there isn't any method to get the last change date of an entity? Did not find any solution in the API Docs.
0
-
Author: mbergmann - 4/8/2021 18:40
Hi Timo,
as you linked to the Dataset interface (and not the Entity): You get the last change date from a Dataset via the .getLastChanged() method which returns a long value (a timestamp). It's defined in the StoreElement interface from which a Dataset inherits.
If you happen to just have an Entity, you can get the corresponding Dataset object either via the corresponding Content2 (=Datasource) or TableTemplate using their .getDataset(Entity) methods before.
Best,
Michael
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
1 commentaire