Вы просматриваете старую версию данной страницы. Смотрите текущую версию.

Сравнить с текущим просмотр истории страницы

« Предыдущий Версия 5 Текущий »

Get row data Version 1 (Python)

Action group: Office


Description

The action returns all values in the working range of the specified page

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for ods/xlsx documentRobin.OpenSheetD oc
Yes
ColumnThe ordinal number of the row from which the data will be retrieved. If you enter a string outside the working range, the action will return an empty resultRobin.Numeric
Yes
Start cellName of the column where the starting cell of the working range is locatedRobin.String
No
End cellName of the column that contains the end cell of the working rangeRobin.String
No
Skip empty cellsIf the parameter value is True, then only filled cells are returned.Robin.BooleantrueNo
Results
ResultVariable to which the values from the string will be writtenRobin.Collection

Special conditions of use

None.

Example of use

Task

There is an Excel document in which you need to get data into the variable "collection" from a certain row No. 1. 

Solution

Use the actions "Open", "Get row data", "Save".

Implementation

  1. Assemble a robot consisting of actions: 


2. Set the parameter for the "Open" action (specify the Path to file). 

  

3. Set the parameters for the "Get data from string" action.

    a) Parameter "Context". Set the relationship with the "Open" action.

    b) Parameter "Column". Specify the string from which we get data - 1.

    c) Parameter "Start cell". Specify the starting column - A

    d) Parameter "End cell". Specify the end column - C

In the "Result" field, specify a variable of the "collection" type, where the data from the row will be written. 

    

4. Set the parameter for the "Save" action. 

5. Launch the robot using the "Start" button in the top panel.

Result

The program robot completed successfully.

Received row data from column A through C. 

 

  • Нет меток