Insert Method (PIUnitBatches collection)

             

Inserts an existing PIUnitBatch object into the collection. The owner PIBatch is updated on the server.

 

Syntax

object.Insert PIUnitBatch

The Insert method syntax has these parts:

Part

Description

object

An object expression that evaluates to a PIUnitBatches collection.

PIUnitBatch

An existing PIUnitBatch to add to the collection.

 

Remarks

This method adds a reference of the PIUnitBatch to the PIBatch that contains the PIUnitBatches collection. It also sets the PIUnitBatch.PIBatch property to this PIBatch. This call will fail if the PIUnitBatch already references a PIBatch. Multiple references to the same PIUnitBatch are not allowed.

The PIBatch property of a PIUnitBatch is read-only. The only method to set this property is by inserting the PIUnitBatch into this collection.

 

Trappable Errors

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

Error

Description

pseNOGENSERVER

The underlying server abstraction layer could not be accessed.

 

Enabling Operational Intelligence