Link Search Menu Expand Document

Data Type Properties

A function is always owned by a specific Data Type. The owner can be either a Screen, a Cell, a Backend Data Type, or a Model. The owner also has properties that its functions can access. The difference between the Function properties and the owner’s properties is that the Function properties store the value only temporarily and are lost after the function execution. Still, the owner’s properties keep their values even after the execution.
Note: The owner has no access to the Function’s properties outside of each Function.

Add a Data Type property

To add a Data Type property, press the + Add function property button, set its data type and name and press SAVE.
Note: You cannot edit the type of a created Data Type property, but you can change its name.
Note: You can also manage your Data Type properties from the Code section of the Data Type.

Delete a Data Type property

Control+click (MacOS) or tap and hold (iPadOS) on the function property and press Delete.

Use Data Type Property Code Blocks

Data Type properties can be accessed using the Get Value and Set Value Code Blocks. You can access these blocks in the Owner Properties tap, where Owner is the Data Type that owns the current editing function. For example, My Screen Properties.

Get Value Code Block

The getter block takes as an input a Data Type property (Screen, Cell, Server Data Type, Model) and shows a dropdown with all of its properties. Select the property you want to get the current value of it.

Set Value Code Block

The getter block takes as an input a Data Type property (Screen, Cell, Server Data Type, Model) and shows a dropdown with all of its properties. Select the property you want to set a new value to. Connect the second input to the new value.

The Self Block

The Self block is a special block that refers to the owner of the Function. For example, if the Function belongs to a Login screen, then the Self block represents this instance of the Login Screen. The self block is in the Data Type Property Code Blocks.
Tip: Use the Self block with the Get Value or Set Value block, to access or update the owner’s properties.