You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
With ConfiForms record you always have access to metadata fields such as
- id - record internal id (UUID), unique for every saved record within dataset
- ownedBy - the username(s) of the users who own the record (and can fully control it) - multi-value field! Multiple users can own a record!
ownedByName - the full name of the user who owns the record Use ownedBy.transform(fullName).asList- createdBy - the username of the user who has created the record (admin users can create records for other users)
createdByName - the full name of the user who has created the record Use createdBy.fullName- created - the timestamp when the record was created
dateCreatedFormatted - DEPRECATED SINCE 3.11.X a more readable way to see created timestamp (Uses "yyyy-MM-dd HH:mm" format, if you need "created" date in another format, use Virtual functions, created.formatDate(PATTERN) to get it in the format you want). - recordId - numeric ID of the record, unique within the form. If you want to reference the record always use "id" field instead
Accessing this fields is the same as accessing the fields you define
For example, consider a simple form like this:
We can build a simple CardView over it's data and to show a createdBy field in addition to defined "mytextfield"