Add Method (PIHeadingSets collection)

             

Creates a PIHeadingSet and attaches it to the PIHeadingSets collection on the server. Returns a reference to the created PIHeadingSet object.

 

Syntax

object.Add Name, Description

The Add method syntax has these parts:

Part

Description

object

An object expression that evaluates to a PIHeadingSets collection.

Name

A string containing the new PIHeadingSet Name. Must be unique to the PIHeadingSets collection.

Description

Description of the new heading set.

 

Remarks

PIHeadingSet objects are used to define a set of PIHeading objects. Multiple heading sets allows headings to be used for naming and hierarchy conventions for equipment or sub-batches.

 

Trappable Errors

In addition to generic errors (such as Out of Memory), the following errors may occur:

Error

Description

pseLOADPIHEADINGSETS

Unable to load the existing collection of PIHeadingSet from the server.

pseDUPPIHEADINGSet

The named PIHeadingSet already exists on the server.

pseNOGENSERVER

The underlying server abstraction layer could not be accessed.

pseADDPIHEADINGSET

Unable to add the PIHeadingSet to the server. The error description typically contains more information. Most likely is that the user didn't have permission.

 

Enabling Operational Intelligence