Description
Clears the specified data table of all data.
Attributes
Input
DataTable - The data table object to be cleared of all data.
Common
ContinueOnError - The Boolean value to specify whether to continue executing the next activities even if there is an error thrown on this activity.
Misc
DisplayName - Renames the activity.
Example
- Create a DataTable variable called dt.
- Add a Generate Data Table inside the initial Sequence.
- In the Generate Data Table DataTable field under Properties, add dt.
- In the Generate Data Table ColumnSeparators field under Properties, write ";", and in the NewLineSeparator field, write "|".
- In the Generate Data Table Input field, type "1; Nicole|2; John|3; Michael". This would be the sample values inside the data table.
- Add an Add Data Row activity, and in the DataTable field, add the dt variable.
- In the Add Data Row Array Row field, write {"4","Jane"}.
- Add a Clear Data Table activity.
- In the Clear Data Table DataTable field, add the dt variable.
The use case should look as the following screenshot:
After the execution, the generated data table should be cleared of all data.