Difference between revisions of "Offline Expression"
(Created page with "Offline expressions are simple C# expression, that are configured on the server, but evaluated on the client. An offline expression has to be enclosed in curly brackets and a...") |
|||
Line 1: | Line 1: | ||
Offline expressions are simple C# expression, that are configured on the server, but evaluated on the client. An offline expression has to be enclosed in curly brackets and a ''code'' tag. | Offline expressions are simple C# expression, that are configured on the server, but evaluated on the client. An offline expression has to be enclosed in curly brackets and a ''code'' tag. | ||
− | The following example code | + | The following example code could be used for the [[MetaProperty#Initial_value|Initial Value]] of a string MetaProperty, and it would write the value of the property ''NAME'' of the hierarchical owner object into the initial value of the given property, when an instance of the carrying MetaClass is created on the client: |
<code> | <code> |
Latest revision as of 14:18, 19 October 2021
Offline expressions are simple C# expression, that are configured on the server, but evaluated on the client. An offline expression has to be enclosed in curly brackets and a code tag. The following example code could be used for the Initial Value of a string MetaProperty, and it would write the value of the property NAME of the hierarchical owner object into the initial value of the given property, when an instance of the carrying MetaClass is created on the client:
{code:ParentLevel["NAME"]}