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

Ключ

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

...

Get values Version 8 (Java)

Группа действийAction group: Коллекции Collections 

Описание

Действие возвращает коллекцию всех значений словаря.

...

Description

The action returns a collection of all dictionary values

Action icon

Image Modified

Параметры

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

Словарь- словарь из которого будет получена коллекция значений

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

На выходе коллекция всех значении словаря.

Настройки

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
DictionaryDictionary for processing

Свойство

Описание

Тип

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

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

Параметры

Словарь

Словарь для обработки
.Robin.Dictionary
Да

Yes
Результаты
Results

Результат

Переменная, содержащая коллекцию всех значений словаря
ResultA variable containing a collection of all the dictionary values.Robin.Collection

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

Отсутствуют

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

Задача 

Существует переменная "Словарь" с значениями: 1 - Москва, 2 - Токио. Необходимо получить коллекцию значений и вывести последовательно в диалоговые окна значения городов.

Image Removed

Решение

воспользоваться действиями "Получить значения", "Получить значение по индексу", "Сообщение". 

Реализация

...



Special conditions of use

None.

Example of use

Task 

There is a variable "Dictionary" with values: 1 - Moscow, 2 - Tokyo. It is necessary to get a collection of values and display the values of cities in the dialog boxes.

Image Added

Solution

Use the "Get values", "Get value by index", and "Show message" actions. 

Implementation

  1. Create a variable "Collection" to record the result of the "Get values" action
  2. Move to the workspace and set the parameters of the "Get values" action
    Image Added
  3. Create 2 variables: "object" and "object 1" to specify the results of "Get values by index" actions (for index 0 and 1). 
  4. Move to the workspace and set the parameters of the "Get value by index" action (for index 0).
    Image Added
  5. Move to the workspace and set the parameters of the "Get value by index" action (for index 1).
    Image Added
  6. Move to the workspace and set the parameters of the "Show message" action (for index 0).
    Image Added
  7. Move to the workspace and set the parameters of the "Show message" action (for index 1).
    Image Added

Result

The values are obtained from the dictionary and displayed sequentially in dialog boxes

...

.

Image Modified
Image Modified
Image Modified