Attribute of a type

Syntax

	$type.attribute($name)

Description

Returns the attribute with the name of a type.

The attribute can be either a property with a primitive value type, or a reference to one or more objects of a buisness object type.

Parameters

Name Type Description Mandatory Default
type String The model type whose attribute is to be determined. yes
name String Name of the attribute searched for. yes

Return value

type: Business object

The attribute with information about its name, definition type and target type.

Examples

	`my.module:MyType`.attribute("myAttr") 

Output: The attribute with the name "myAttr" and its definition and target type.

The returned attribute corresponds to `my.module:MyType#myAttr`.