Arbortext Command Language > Functions by Alphabetical Listing > oid_unknown_attr_list
  
oid_unknown_attr_list
oid_unknown_attr_list(oid, arr)
This function fills the associative array arr with a list of unknown attributes set for the element identified by oid. This function returns the number of unknown attributes in the array or 0 if the element has no unknown attributes. Each unknown attribute is stored in the array using the attribute name as the key, and its value as the array element value.
Example:
function show_unknown_attrs(oid)
{
local ual[]
local count
count = oid_unknown_attr_list(oid, ual)
if (count == 0){
response("The given oid has no unknown attributes.")
} else {
local ua
local i = 1
local ual2[]
# Convert from an associative array to a normal array
# so it can be used with list_response().
for (ua in ual) {
ual2[i++] = ua . "=" . ual[ua]
}
list_response(ual2, "List of Unknown Attributes")
}
}
Related Topics
oid_attr_list function
oid_invalid_markup function
oid_attr function
oid_modify_attr function
oid_delete_attr function