PCModelingLibrary::isAttributeNameValid Method [AX 2012]

Checks whether the given name is a valid name for an attribute.

client server public static boolean isAttributeNameValid(
    PCClass _component, 
    EcoResAttribute _attribute, 
   [boolean _displayError])

Run On

Called

Parameters

_component
Type: PCClass Table
_attribute
Type: EcoResAttribute Table
The attribute record that contains the name to validate.
_displayError
Type: boolean
A Boolean value that indicates whether an error should be displayed in case the name is not valid.

Return Value

Type: boolean
true if the name is valid; otherwise, false.
Show: