История страницы
...
Data entry form Version 9 (Net)
Группа действий: Диалоговые окна
Описание
Действие отображает пользователю форму с полями для заполнения. После заполнения полей пользователь нажимает на кнопку «OK», а действие сохраняет введенные данные.
Иконка действия
Параметры действия
Входные параметры
Поле "Поля окна" - Словарь с названиями полей (ключи) и их значениями для модального окна. Например: Ключ - ФИО, тип данных - строка.
Поле "Заголовок" - Наименование модального окна. Например: Персональные данные.
Выходные параметры
- Чекбокс "Результат модального окна" - True если была нажата кнопка «OK», иначе False.
Настройки
Action group: Dialogs
...
Description
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.
Action icon
Action parameters
Input parameters
- "Window fields" field - Dictionary with field names (keys) and their values for the modal window. For example: Key - Full name, data type - string.
- "Title" field - Name of the modal window. For example: Personal Data.
Output parameters
- The "Modal window result" checkbox - True if the "OK" button was clicked, otherwise False.
Settings
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 |
Свойство
Описание
Тип
Пример заполнения
Обязательность заполнения поля
Параметры
Поля окна
Словарь с названиями полей (ключи) и их значениями для модального окна. В окне будут отображены только поля с типом „Строка“, „Число“, „Дата-время“, „Пароль“ и „Логический“, остальные типы из входного словаря игнорируются.
Robin.Dictionary
Да
Заголовок
Наименование модального окна
Robin.String
Нет
Результаты
Результат модального окна
False | Robin.Boolean | true |
Особые условия использования
Для ввода данных используется словарь, где ключ выступает в качестве описания для окна ввода. Данные, введенные в окне ввода, сохраняются в значении пары словарь-значение
Пример использования
Задача
Необходимо получить данные ФИО, в процессе выполнения схемы робота. Используем для этого переменную типа словарь:
.
Решение
Воспользоваться действием "Форма ввода данных" и "Получить значение".
Реализация
Собрать схему робота, состоящую из следующих действий:
Форма ввода данных;
Получить значение.
...
Настроить параметры для действия "Форма ввода данных". В поле «Поля окна» указать переменную «Словарь». Для ввода данных используется словарь, где ключ выступает в качестве описания для окна ввода. Данные, введенные в окне ввода, сохраняются в значении пары словарь-значение. В поле «Заголовок» указать значение - Форма ввода данных.
Special conditions of use
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.
Example of use
Task
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:
Solution
Use the "Data entry form" and "Get value" action.
Implementation
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.
Result
The program robot completed successfully. Full name data has been received.
Настроить параметры для действия "Получить значения": В поле "Словарь" указать соответствующую переменную. В поле "Ключ" указать значение "ФИО". В результате действия указать переменную "Объект", куда будет записано значение, связанное с указанным ключом.
...
Отображено окно "Форма ввода данных". Ввести в данном окне значение Петров Иван Иванович. Нажать кнопку ОК.
Результат
Программный робот отработал успешно. Данные ФИО получены.