beautypg.com

Parentobjectinternalid, Parentobjectname – Echelon OpenLNS User Manual

Page 253

background image

OpenLNS Programmer's Reference

216

ParentObjectInternalId

Summary

Indicates the internal ID of the parent of the object that

caused the error, which is referenced by this

DatabaseValidationErrorInstance

object.

For example, if the error type is

lcaDbValidationErrorMissingNv, this property would

contain the internal ID of the parent object of the missing

NetworkVariable

object (the name of the object the missing

NetworkVariable

object should be accessed through).

You can determine the type of error referenced by the

DatabaseValidationErrorInstance object by reading the

ErrorType property.
You can determine the name of the parent of the object that

caused the error by reading the ParentObjectName property.

If the object associated with the error does not have a parent

object (the error type is

lcaDbValidationErrorOrphanObject or

lcaDbValidationErrorOrphanDevice), this property will

contain an empty string.

Availability

Local clients.

Syntax

parentInternalId = errorInstance.ParentObjectInternalId

Element

Description

parentInternalId

The internal ID of the parent of

the object that caused the error.

errorInstance

The

DatabaseValidationErrorInstance

object being acted upon.

Data Type

Integer

.

Read/Write

Read only.

Added to API

LNS Release 3.20.