Available for: Content Management Server
Task: Searches for fields with particular parameter values, e.g. fields whose type
is string
, or whose name
contains a given sequence of characters. If more than one parameter/value pair is specified, a field must meet all search criteria for the field to become part of the search result.
Syntax:
attribute where {parameter value}
Function parameters: (If no parameter is specified, the command returns the names of all fields.)
parameter
specifies the name of the parameter whose
value is to be searched for or specifies the number of hits. The following parameters
can be used:
maxResults
specifies that
value
is a number that limits the
number of hits. If number is less than or equals zero, the
number of hits is unlimited.name
specifies that the names of the fields are
to be checked for occurrences of value
.type
specifies that
value
is a single attribute type or a
list of attribute types. A field's type must be equal to the
single value or part of the list, respectively, to be
included in the search result.value
specifies the search term for the respective parameter.
Return value if successful: the names of the fields that match the search criteria (stringlist)
Necessary permissions: no restrictions
Example:
CM>attribute where name dat datasheet datasheet1 datasheet2