Skip to main content
Version: 7.9

system.dataset.appendDataset

This function is used in Python Scripting.

Description

Takes two different datasets and returns a new dataset with the second dataset appended to the first. Will throw an error if the number and types of columns do not match.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.dataset.appendDataset(dataset1, dataset2)

Parameters

TypeParameterDescription
Datasetdataset1The dataset that will come first in the returned dataset.
Datasetdataset2The second dataset that will be appended to the end in the returned dataset.

Returns

Dataset - A new dataset that is a combination of the original two datasets.

Scope

All

Code Examples

Example 1
# This example pulls in the datasets from two different table components, combines them, then writes the results to a third table.
# the two source datasets must have the same number and types of columns.

data1 = event.source.parent.getComponent('Table 1').data
data2 = event.source.parent.getComponent('Table 2').data
comboData = system.dataset.appendDataset(data1, data2)
event.source.parent.getComponent('Table 3').data = comboData