getNounName macro

Use this macro to get the noun name of a Property the UserArea. This only applies to Properties of type MasterDataReferenceType

string getNounName(long property.node)
Argument Description
Property Node The node of a previously retrieved property. Note that if the given node is not a property, or of a type for which the noun name attribute is not applicable, the result is unpredictable.

Return value: The noun name of the given property.

Example:

long    property.node
string  property.type(50)
string  noun.name(50)
string  property.value(100) mb
string  l.message(200) mb
property.node = getFirstProperty()
while property.node <> 0
    property.type = getPropertyType(property.node)
    if property.type = "MasterDataReferenceType" then
        noun.name = getNounName(property.node)
        property.value = getPropertyValue(property.node)
        if txppldll0003.check.reference(noun.name,
                   property.value, l.message) <> 0 then
             dal.set.error.message("@" & l.message)
             return(DALHOOKERROR)
        endif
    endif
    property.node = getNextProperty(property.node)
endwhile