Paste row Version 1 (Python)
Action group: Office
Description
The action inserts a new line before the specified line.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Action context for working with ods/xlsx table. | Robin.OpenSheetD oc | Yes | |
Row index | The row number before which the new row will be pasted. The numbering starts from 1. | Robin.Numeric | Yes | |
Values | Values for the new row. | Robin.Collection | No |
Special conditions of use
None.
Example of use
Task
There is a tabular document. It is necessary to insert a row with data after the last row in the table.
Solution
Use the actions "Open", "Paste line", "Save".
Implementation
- Assemble a robot scheme consisting of actions:
2. Set parameters for the "Open" action. In the "File path" field specify the path to the required tabular document "Test 1".
3. Set the parameters for the "Paste row" action.
- specify the context of the opened document "Test 1" in the "Context" field;
- in the "Row index" field specify the index of the line where the line with values will be inserted;
- in the "Values" field specify the data that will be in the new line.
4. Set the parameters of the "Save" action. In the "Context" field specify the context of the opened document "Test 1".
5. Launch the robot using the "Start" button in the top panel.
Result
The program robot completed successfully.
A new row has been added to the table.
Обзор
Инструменты контента