Action group: Dialogs
The action displays to the user a form with fields to be filled in. After filling in the fields, the user clicks the "OK" button and the action saves the entered data.
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Window fields | Dictionary key, value. Where is the key of this string, which specifies the name of the field in the output form. Value - the value that will be displayed in the field for changing the form. The field is of the same type as the value. The number of fields displayed will be equal to the number of selected values. After saving, the values in the dictionary are updated. | Robin.Dictionary | Yes | |
Title | The title of the modal window | Robin.String | No | |
Results | ||||
Modal window result | True if the button «OK» was pressed, otherwise False | Robin.Boolean | true |
A dictionary is used to enter data, where the key acts as a description for the input window. The data entered in the input window is stored in the value of the dictionary-value pair.
It is necessary to get the data of full name in the process of executing the robot scheme. We use a variable of the dictionary type for this purpose:
Use the "Data entry form" and "Get value" action.
Assemble a robot scheme consisting of the following activities:
Data entry form;
Get value.
Configure parameters for the "Data entry form" action. In the "Window fields" field, specify the "Dictionary" variable. A dictionary is used for data input, where the key acts as a description for the input window. The data entered in the input window is stored in the value of the dictionary-value pair. In the "Title" field specify the value - Data entry form.
Set the parameters for the "Get values" action: In the "Dictionary" field, specify the appropriate variable. In the "Key" field, specify the value "Full name". As a result of the action, specify the variable "Object" where the value associated with the specified key will be written.
Click on the "Start" button in the top panel.
The "Data entry form" window is displayed. Enter the value Petrov Ivan Ivanovich in this window. Click the OK button.
The program robot completed successfully. Full name data has been received.