getObjectPropertyAttribute()

Overview

public string function getObjectPropertyAttribute(
      required string objectName   
    , required string propertyName 
    , required string attributeName
    ,          string defaultValue  = ""
)

Returns an arbritary attribute value that is defined on a specified property for an object.

Arguments

NameTypeRequiredDescription
objectNamestringYesName of the object whose property attribute we wish to get
propertyNamestringYesName of the property whose attribute we wish to get
attributeNamestringYesName of the attribute whose value we wish to get
defaultValuestringNo (default="")Default value for the attribute, should it not exist

Example

maxLength = presideObjectService.getObjectPropertyAttribute(
          objectName    = "event"
        , propertyName  = "name"
        , attributeName = "maxLength"
        , defaultValue  = 200
);