Paste column Version 1 (Python)
Action group: Version
Description
The action inserts a new column to the left of the specified column.
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 | |
Column name | The name of the column before which you want to paste the new column. If the field is not filled in, the column will be determined by the value from the «Column index» field. | Robin.String | No | |
Column index | The ordinal number of the column to insert a new column before. The numbering starts from 1. | Robin.Numeric | No | |
Values | Values for the new column. | Robin.Collection | No |
Special conditions of use
None.
Example of use
Task
There is a tabular document. It is necessary to insert a column with data on capitals to the right of the column with countries.
Solution
Use the actions "Open", "Paste column", "Save".
Implementation
- Assemble a robot scheme consisting of actions:
- Set parameters for the "Open" action. In the "File path" field specify the path to the required tabular document "Test 1".
- Set the parameters for the "Paste column" action.
- in the "Context" field specify the context of the opened document "Test 1";
- in the "Column name" field specify the name of the column where the column with values will be inserted;
- in the "Values" field specify the data that will be in the new column.
- Set the parameters of the "Save" action. In the "Context" field specify the context of the opened document "Test 1"
- Launch the robot using the "Start" button in the top panel.
Result
The program robot completed successfully.
The column has been added to the document.
Обзор
Инструменты контента