beautypg.com

Parentobjectclass – Echelon OpenLNS User Manual

Page 252

background image

OpenLNS Programmer's Reference

215

ParentObjectClass

Summary

Indicates the class 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

lcaDbValidationErrorMissingLMO, this property would

contain the class ID of the parent of the missing

LonMarkObject (the object the missing LonMarkObject

should be accessed through).

The values returned by this property map to the values of the

ConstClassIds constant; therefore you can use the

ConstClassIds constant to determine the object type the class

ID applies to. For example, if this property returns 9, the

object is a Router object. See the ComponentClassID

property of the ComponentApp

object for a list of the class

IDs.
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

parentClass = errorInstance.

ParentObjectClass

Element

Description

parentClass

The class 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.