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 a dataset and returns a new dataset with all of the same column names, but all of the rows deleted.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.dataset.clearDataset(dataset)

  • Parameters

Dataset dataset - The starting dataset. If NULL, a NULL dataset will be returned.

  • Returns

Dataset - A new dataset with no data.

  • Scope

All

Code Examples
Code Snippet
# This example pulls in the dataset from a Table component, clears it, then writes the empty dataset back to the table.

data = event.source.parent.getComponent('Table').data
event.source.parent.getComponent('Table').data = system.dataset.clearDataset(data)
  • No labels