Skip to end of metadata
Go to start of metadata

This feature is new in Ignition version 7.9.7
Click here to check out the other new features
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

Dataset dataset - The dataset that will come first in the returned dataset.

Dataset dataset - The 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
Code Snippet
# 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
  • No labels