Skip to main content
Version: V3 (Ignition 8.3)

tamaki.mes.backup.compare.createSummaryDataSet

Description

Builds a summary dataset showing how many entities were removed, added, and updated for each entity type. Entity types that were entirely removed or added get a row whose Notes column reads File type removed or File type added; entity types that changed get rows with the corresponding counts (only when there is at least one change).

Raises a TypeError if the arguments are not of the expected types.

Syntax

tamaki.mes.backup.compare.createSummaryDataSet(removedEntityTypes, addedEntityTypes, updatedEntityTypes)

Parameters

ParameterTypeNullableDescription
removedEntityTypesListFalseThe removed-entity-types list returned by compareEntityLists.
addedEntityTypesListFalseThe added-entity-types list returned by compareEntityLists.
updatedEntityTypesDictFalseThe updated-entity-types dictionary returned by compareEntityLists.

Returns

A Dataset with the columns Entity, Removed, Added, Updated, and Notes. One row per entity type.

Code Examples

removedTypes, addedTypes, updatedTypes = tamaki.mes.backup.compare.compareEntityLists(oldData, newData)
summary = tamaki.mes.backup.compare.createSummaryDataSet(removedTypes, addedTypes, updatedTypes)
self.getChild("SummaryTable").props.data = summary