Skip to main content

Synchronizer

A Synchronizer object is an object that synchronizes fields between two document objects on forms to which documents are linked, table, details, and detail table objects on forms.

The Synchronizer object is dragged from the toolbox panel and dropped onto the stream. When the object in the Flow design screen is clicked, the object properties appear in the Property Viewer panel.

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

Synchronizer

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

Value

'Type' - Whether the type of the Synchronizer object is an alphanumeric, numeric, or logical value is set from this tab. In the field of medicine; Text, Integer, Decimal, Date, Money, and True/False types are listed.

'Value Type' - If a constant value is desired, the "Constant value" option is selected as the value type.

'Value' - The field where the Constant value selected in the Value Type field is defined.

Action

'Continue If Error Occurs' - When the process passes through the Synchronizer object, the block of code written inside the object method is executed and when any error is encountered in this code, it is marked in the web interface if the process is desired to continue without error.

'Error Description Object' - When an error is encountered in the Synchronizer object codes, a Variable object to which the detailed text of the error is assigned is selected from this field.

Synchronization

'Source Type' - The area where the selection of which data type to use as a source in the synchronization process is made. The item listed is the Document option.

  • Selecting Document as Source Type means that the data on the form will be synchronized.

'Source Document' - The area on the flow from which the form is selected if it is intended to be used as a source.

'Target Type' - The field specifies the destination to which the data selected in the source section will be transferred. The item listed is the Document option.

  • The option as Target Type means that the data on the form will be synchronized.

'Target Document' - The area on the flow from which the form is intended to be used as the target is selected.

'Fields' - The association of the fields specified in the Source and Destination fields is done from this section. Field mappings are performed by defining which fields in the source correspond to which field in the destination.

Synchronizer

INFO

It is checked by the system that the attached properties on the object are correct. When a missing feature is found, a red exclamation point icon can be displayed on the object, and hovering over the icon with the mouse pointer can display what is missing or incorrect.

Synchronizer

Events

Events

The events owned by the Synchronizer 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 specified.

Synchronizer