Introduction to the "Build Data Table" Activity
TABLE OF CONTENTS
1. Activity program name
RCA.Activities.Core.BuildDataTable
2. Description
Up to Studio Version 2.0.2.0
Quick Access: "Toolbox" > "Data Table" > "Build Data Table"
From Studio Version 2.0.3.0
Quick Access: "Toolbox" > "Core" > "Data Table" > "Build Data Table"
This activity creates a new data table. It is suitable in cases where there is no source to load from, an empty data table needs to be created, or a fixed content data table needs to be generated.
Note: Operation confirmed with Studio version 2.2.0.4. Some wording may vary depending on the version.
3. Properties
4. Usage
Drag and drop the "Data Table > Build Data Table" activity from the Toolbox onto the Designer panel.
Click “Variables” tab to create Variable. The name is rateTable and the type is DataTable
Click “Output, A pop-up will appear with "Name:". Enter the variable name and press Enter to set it in the Properties. In this example, we will create an "exchange rate table" with the variable named "rateTable."
Click on the "Data Table…" button on the Designer panel.
The "Build Data Table" window will pop up.
Click the "+" button on the header row to add columns, or the "×" button to delete them. You can also edit column information using the pencil icon.
The "×" button on the data row allows you to delete rows.
Although you can edit using the pencil icon, in this example, we will recreate it from scratch.
First, delete the initially set columns.
Proceed to create the data table by adding columns.
The following window will be displayed.
Each item is described below:
Specify the column name and data type, then click the "OK" button.
The "Currency (Currency Unit)" column has been added.
Following the same steps, create a column named "Exchange Rate (JPY)" with data type "System.Double."
Enter data into the data table by editing each cell. Press the Tab key to confirm a cell entry and the Enter key to confirm a row entry. After pressing Enter, you will move to a new row. Once finished, click the "OK" button.
The data table has been successfully created, and the result is reflected in the "rateTable" variable.
To verify the output of the data table, use "Output Data Table" to convert it to a string and display it in the output panel using "Write Line," or display it in a message box with "For Each Row."
Note: Starting from Studio version 2.0.1.7, a pencil icon was added to allow editing of column information. Although some screenshots do not include this icon, the operations are the same.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article