Skip to main content
Skip table of contents

GetTableFieldValues Method

Gets the table field values of a table field process property.

CODE
public Dictionary<string, List<string>> GetTableFieldValues(string name);

Classes: Properties


Parameters

string name

Name of the property to get.

Returns

Dictionary<string, List<string>>

Table field values of the property.


Example

The following example demonstrates adding a row of data to a table field property. The table data is returned from the GetTableFieldValues method as a Dictionary<string, List<string>>. The key of the dictionary represents a column field's name, and the value of the dictionary represents the cells of data belonging to that column. The example table field property has two columns, and a new cell is inserted into each with values corresponding to the name of the column field.

CODE
var tableData = Process.Properties.GetTableFieldValues("Table Field");
var cellOneValue = "100";
var cellTwoValue = "200";
foreach (var column in tableData)
{
    switch (column.Key)
    {
        case "Cell One": // Column field is named "Cell One"
            column.Value.Add(cellOneValue);
            break;
        case "Cell Two": // Column field is named "Cell Two"
            column.Value.Add(cellTwoValue);
            break;
    }
}
Process.Properties.SetTableFieldProperty("Table Field", tableData);

Remarks

If the target property is not a table field property, this method will throw an InvalidOperationException.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.