Skip to main content

Variable

A variable object is an object that allows a value on a form or flow to be stored in the designed process and used in another part of the flow. In flow design, an object can be placed in an area in the flow with drag-and-drop and used in any way without connecting to the process.

When the object in the Flow design screen is clicked, the object properties appear in the Property Viewer panel.

Variable

When the variable object is clicked, there are "Appearance", "Properties" and "Events" tabs in the Property Viewer panel.

Appearance

Text Configs

'Object Name' - The name of the object to be used on the system side. On the code side, the object is accessed by the value that is written in the object name field.

'Caption' - The area where the object's title text is entered.

'Is Lock' - This field is activated if the object is not to be moved at the time of design.

'Size' - The part where the width and height of the object are adjusted.

Properties

Variables

'Type' - Determining what type of data to hold in the variable is set by the type option. The options listed are Text, Integer, Decimal, Date, Money, and True/False.

'Value Type' - Used to automatically assign a value within a variable. When the Constant value is selected in the field, the field (Value) where this value is entered becomes visible. When the new Variable object is added to the stream, the selection of Constant value comes automatically.

'Value' - The field where a constant value to be defined in the variable is entered.

'General' - Used to make the variable public or private type. When the General option is selected, the object becomes accessible from the outside.

'Target Document' - If you want to get a value into the variable via the form, this is the area where the document object with this value is selected.

'Target Object' - Whichever object in the selected form in the Target Document is desired to receive the value, the selection is made in this field.

Events

The events owned by the variable object are located in the "Events" tab in the Property Viewer panel. Each event is triggered at different runtime moments, performing its own unique operations. Code written by the developer to these events is also executed at the time the corresponding event is triggered. To write code for any event, double-click the appropriate event line from the Events tab. The screen is directed to the flow code editor section named "FlowName.cs" and the method block for the clicked event is automatically created. The developer can construct any code block he wants in this method. Next to the event whose method is created on the code side by clicking from the Events tab, the method name information is automatically generated and the relationship between the event and the method is indicated.

Variable