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

Ключ

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

...

Add row

...

Группа действий: Таблицы 

Данное действие предназначено для добавления строки в конец таблицы.

Image Removed

Настройки

...

Таблица

...

Значения, которые будут добавлены.

...

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

При добавлении строки со значениями вне используемого диапазона  будет отображена ошибка. (Например, добавляем строку с 3 значениями, а в предыдущих строках по 2 значения).  Если добавлять значения в рамках используемого диапазона, то ошибки не возникнет.

Image Removed

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

Задача: имеется таблица в формате CSV Image Removed. Необходимо добавить строку ниже и сохранить таблицу под названием NEW.

Решение: воспользоваться действиями "Получить таблицу из CSV", "Добавить строку", "Сохранить таблицу в CSV". 

Реализация:

...

Version 4 (Net)

Action group: Tables 

...

Description

The action adds a row to the end of the table.

Action icon

Image Added

Settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Data tableTable for which the action will be performed.Robin.DataTable
Yes
ValuesThe values to be added.Robin.Collection
Yes
ResizeAllow columns to be added to the table depending on the number of values passed.Robin.BooleantrueNo

Special conditions of use

When adding a row with values outside the used range, an error will be displayed. (For example, we add a row with 3 values, but the previous rows have 2 values each). 

If you add values within the range used, no error will occur.

Image Added


Example of use

Task

You have a CSV-table.

 Image Added.

Add a row below and save the table under the name "NEW".

Solution

Use the "Get table from CSV", "Add row", "Table to CSV" actions.

Implementation

  1. Assemble a robot scheme with the actions:
    Image Added
  2. Set the "Get table from CSV" action parameters.
    Image Added
  3. Set the "Add row" action parameters. Add a collection with target values in the "Values" field.
    Image Added
  4. Set the "Table to CSV" action parameters.
    Image Added
  5. Click "Start" in the top panel.

Result

The program robot completed successfully.

The row was added to the table.

Image Added

...

Результат:

Программный робот отработал успешно. 

Image Removed

Строка добавлена в таблицу. 

Image Removed