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
Name | Type | Required | Description |
---|---|---|---|
objectName | string | Yes | Name of the object whose property attribute we wish to get |
propertyName | string | Yes | Name of the property whose attribute we wish to get |
attributeName | string | Yes | Name of the attribute whose value we wish to get |
defaultValue | string | No (default="") | Default value for the attribute, should it not exist |
Example
maxLength = presideObjectService.getObjectPropertyAttribute(
objectName = "event"
, propertyName = "name"
, attributeName = "maxLength"
, defaultValue = 200
);