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.)
parameterspecifies the name of the parameter whose value is to be searched for or specifies the number of hits. The following parameters can be used:-
maxResultsspecifies thatvalueis a number that limits the number of hits. If number is less than or equals zero, the number of hits is unlimited. -
namespecifies that the names of the fields are to be checked for occurrences ofvalue. typespecifies thatvalueis 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.
-
valuespecifies 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