Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Data entry form Version 9 (Net)

Группа действий: Диалоговые окна 

Описание

Действие отображает пользователю форму с полями для заполнения. После заполнения полей пользователь нажимает на кнопку «OK», а действие сохраняет введенные данные.

Иконка действия

Image Removed

Параметры действия 

Входные параметры

  1. Поле "Поля окна" - Словарь с названиями полей (ключи) и их значениями для модального окна.  Например: Ключ - ФИО, тип данных - строка.

  2. Поле "Заголовок" - Наименование модального окна. Например: Персональные данные.

Выходные параметры

  1. Чекбокс "Результат модального окна" - 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

Image Added

Action parameters

Input parameters

  1. "Window fields" field - Dictionary with field names (keys) and their values for the modal window.  For example: Key - Full name, data type - string.
  2. "Title" field - Name of the modal window. For example: Personal Data.

Output parameters

  1. The "Modal window result" checkbox - True if the "OK" button was clicked, otherwise False.

Settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Window fieldsDictionary 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
TitleThe title of the modal windowRobin.String
No
Results
Modal window resultTrue if the button «OK» was pressed, otherwise

Свойство

Описание

Тип

Пример заполнения

Обязательность заполнения поля

Параметры

Поля окна

Словарь с названиями полей (ключи) и их значениями для модального окна. В окне будут отображены только поля с типом „Строка“, „Число“, „Дата-время“, „Пароль“ и „Логический“, остальные типы из входного словаря игнорируются.

Robin.Dictionary

 

Да

Заголовок

Наименование модального окна

Robin.String

 

Нет

Результаты

Результат модального окна

True если была нажата кнопка «OK», иначе
FalseRobin.Booleantrue

 

Особые условия использования 

Для ввода данных используется словарь, где ключ выступает в качестве описания для окна ввода. Данные, введенные в окне ввода, сохраняются в значении пары словарь-значение

Пример использования 

Задача

Необходимо получить данные ФИО, в процессе выполнения схемы робота. Используем для этого переменную типа словарь:

.Image Removed

Решение 

Воспользоваться действием "Форма ввода данных" и "Получить значение". 

Реализация 

Собрать схему робота, состоящую из следующих действий: 

Форма ввода данных;

Получить значение.

...

Настроить параметры для действия "Форма ввода данных". В поле «Поля окна» указать переменную «Словарь». Для ввода данных используется словарь, где ключ выступает в качестве описания для окна ввода. Данные, введенные в окне ввода, сохраняются в значении пары словарь-значение. В поле «Заголовок» указать значение - Форма ввода данных.

Image Removed


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:Image Added

Solution 

Use the "Data entry form" and "Get value" action. 

Implementation

  1. Assemble a robot scheme consisting of the following activities:  

    Data entry form;

    Get value.

    Image Added

  2. 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.

    Image Added

     

  3. 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. 

    Image Added

  4. Click on the "Start" button in the top panel. 

  5. The "Data entry form" window is displayed. Enter the value Petrov Ivan Ivanovich in this window. Click the OK button. 

    Image Added

Result

The program robot completed successfully. Full name data has been received. 

Image Added

 

Настроить параметры для действия "Получить значения": В поле "Словарь" указать соответствующую переменную. В поле "Ключ" указать значение "ФИО".  В результате действия указать переменную "Объект", куда будет записано значение, связанное с указанным ключом. 

...

Отображено окно "Форма ввода данных". Ввести в данном окне значение Петров Иван Иванович. Нажать кнопку ОК. 

Image Removed

Результат

Программный робот отработал успешно. Данные ФИО получены. 

Image Removed