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

Ключ

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

...

Question dialog Version 16 (Net)

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

Описание

Данное действие предназначено для отображения пользователю  в модальном окне вопроса с кнопками для ответа "Да" и "Нет".

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

Image Removed

Параметры

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

  1. Заголовок окна - Наименование модального окна. Например, “Сохранить документ”.

  1. Вопрос - Текст, который будет содержать модальное окно. Например, “Сохранить документ?”.

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

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

Настройки 

...

Логическая переменная, которая будет хранить ответ пользователя на вопрос.

Да - true, Нет- false

...

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

Алгоритм работы робота будет продолжен после закрытия модального окна пользователем.

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

Задача

Вывести на экран диалоговое окно с вопросом к пользователю. Наименование окна - "Сохранить файл". Вопрос - "Сохранить документ?".

Решение

Добавить вопрос. 

Реализация

...

Action group: Dialogs

...

Description

This action is designed to display a question to the user in a modal window with "Yes" and "No" answer buttons.

Action icon

Image Added

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
QuestionQuestion text that will contain the modal windowRobin.String
Yes
Window titleModal window nameRobin.String
No
Results
ResultLogical variable (boolean) that will store the user’s answer (Yes / No) to the questionRobin.Booleantrue

Special conditions of use

The robot algorithm will continue after the modal window is closed by the user.

Example of use

Task

Display a dialog box with a question to the user. The name of the dialog box is "Save file". Question - "Save document?".

Solution

Add a question. 

Implementation

  1. Create an "Answer" variable with type "Boolean" that will contain the user's answer to the question.

    Image Added
  2. Open the "Dialogs" action group.
  3. Move the "Question dialog" action into the Studio workspace and set the action parameters.
     Image Added

    Image Added
  4. Launch the robot using the "Start" button in the top panel.
  5. A dialog box appears with choices for answering the question. 
    Image Added
  6. Click the "Yes" button. 
  7. The variable contains the value True after an affirmative response from the user. 
    Image Added

Result

The program robot completed successfully, displaying a question to the user in a modal window

Результат

Программный робот отработал успешно, отобразился в модальном окне вопрос пользователю.