Get values Version 8 (Java)

Action group: Collections 


Description

The action returns a collection of all dictionary values

Action icon

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

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.

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
  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).
  5. Move to the workspace and set the parameters of the "Get value by index" action (for index 1).
  6. Move to the workspace and set the parameters of the "Show message" action (for index 0).
  7. Move to the workspace and set the parameters of the "Show message" action (for index 1).


Result

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






  • Нет меток