Skip to main content
Version: 7.9

system.dataset.clearDataset

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

TypeParameterDescription
DatasetdatasetThe starting dataset. If NULL, a NULL dataset will be returned.

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 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)