getDefaultAttrValue()

Retrieves the default value of an attribute of a business object, given the attribute's name or its position in the business object's attribute list.

Syntax

public String getDefaultAttrValue(int position);
 public String getDefaultAttrValue(String name);
 

Parameters

name
Is the name of an attribute.
position
Is an integer that specifies the ordinal position of an attribute in the business object's attribute list.

Return values

The String containing the default value of the attribute. If no default value exists for the attribute, the method returns an empty string.

Exceptions

CxObjectNoSuchAttributeException
Thrown if the position or name specified is not valid for the definition of this business object.

Notes

To retrieve the default value of an attribute of the business object, specify either the attribute name or the attribute's position in the list of attributes.

See also

See also the description of the getAttrValue() method.

Copyright IBM Corp. 1997, 2003