Function.Ticks:
With this version, we're adding the first function "Ticks", which can be used to get a number useful for document IDs or similar. The function binding are as follows:
Form Configuration:
{{Function.Ticks()}}
This is to be used in Default Value where the End-User can edit the number before inserting it in the document. A "Form.FormFieldName"-binding is then required to insert the value into the document.
Template Configuration:
{"templafy":{"type":"text","binding":"Function.Ticks()"}}
This is to be used when you need a non-editable value to be inserted in a Content Control in the document.
Addtional text can be added to the Default Value of the Form field, eg. "Document ID: {{Function.Ticks()}}". Examples of setup and how it looks can be seen below.
A single tick represents one hundred nanoseconds, or one ten-millionth of a second. There are 10,000 ticks in a millisecond, or 10 million ticks in a second.
The value of this property represents the number of 100-nanosecond intervals that have elapsed since 12:00:00 midnight, January 1, 0001 (0:00:00 UTC on January 1, 0001, in the Gregorian calendar), which represents DateTime.MinValue. It does not include the number of ticks that are attributable to leap seconds.
Comments
0 comments
Article is closed for comments.