- ⌂ Content
- Directives
#META
Get a metadata property about an object.
Prototype
#META($object,$property)Parameters
- object - A variable reference to a repository object.
- property - One of the following property names, relative to the queried object. The property names are keywords, so they are expressed without quotes. For example, META(LastModified).
- LastModified - The greater-object's Last Modified Timestamp, which is the most recent modification of a top-level object and all of it's embedded objects recursively. In other words, a top-level object and all of it's embedded objects recursively share the same Last Modified Timestamp.
- ThisLastModified - The immediate-object's This Last Modified Timestamp, which is the most recent modification to the immediate-object, regardless of whether or not the object is a top-level object or embedded within another object. In other words, a top-level object may have a different This Last Modified Timestamp than it's embedded children, which are modified independently from the top-level object and other embedded objects.
- LastModifiedNote - The version note of the greater-object's last modification.
- ThisLastModifiedNote - The version note of the immediate-object's last modification.
- LastModifiedRevision - The revision of the greater-object's last modification.
- ThisLastModifiedRevision - The revision of the immediate-object's last modification.
- LastCreatedRevision - The revision of the greater-object's creation.
- ThisCreatedRevision - The revision of the immediate-object's creation.
- Unsaved - 1 if the greater-object is in an unsaved state for the specified User (option can be a username or User OID), otherwise 0.
- ThisUnsaved - 1 if the immediate-object is in an unsaved state for the specified User (option can be a username or User OID), otherwise 0.
- Unapproved - 1 if the greater-object is in an unapproved state for the specified User (option can be a username or User OID), otherwise 0.
- ThisUnapproved - 1 if the immediate-object is in an unapproved state for the specified User (option can be a username or User OID), otherwise 0.
- Approved - 1 if the greater-object is in an approved state for the specified User (option can be a username or User OID), otherwise 0.
- ThisApproved - 1 if the immediate-object is in an approved state for the specified User (option can be a username or User OID), otherwise 0.
- HasIcon - 1 if the top-level-object has an icon defined (in all variants), otherwise 0.
- ThisHasIcon - 1 if the immediate-object has an icon defined, otherwise 0.
- Deleted - 1 if the top-level-object is deleted (in all variants), otherwise 0.
- ThisDeleted - 1 if the immediate-object is deleted, otherwise 0.
- ParentOID - OID of the immediate-object's parent OID (an alias for ThisParentOID).
- ThisParentOID - OID of the immediate-object's parent OID.
- TopParentOID - OID of the top-most-object.
- ThisTopParentOID - OID of the top-most-object of the immediate-object, which is always the same as TopParentOID.
- IsEmbedded - 1 if the immediate-object is embedded, otherwise 0.
- ThisIsEmbedded - 1 if the immediate-object is embedded, otherwise 0.
Return
Returns the object's metadata property value.
Example
#**
* List contacts and the time their object was last updated.
*#
<ul>
#LIST(Contacts)
<li>$FirstName $LastName (updated #META($this,LastModified))</li>
#ENDLIST
</ul>
webCOMAND Docs