defaultOutput(searchPath)
object-set defaultOutput(searchPath)
The defaultOutput
function returns at least one output
object.
searchPath is a search path that selects a report
, reportView
, or query
object.
The function selects an output
object that is a descendant of the object selected by searchPath. Content Manager selects only the following:
output
objects that are children of the most recentreportVersion
objectoutput
objects that the current user can read
If any of these objects has a locale
property value that matches the contentLocale
user preference of the current session, Content Manager selects only these objects.
If any of these objects has a defaultOutputFormat
property value that matches the format user preference of the current session, Content Manager selects only these objects.
Only one object is returned. If more than one object is selected, the function arbitrarily chooses a single object to return.
For example, the following search path selects the report
object named Customer Invoice and returns the appropriate output
object:
defaultOutput(/content/package/folder[@name='Sample Reports']/report[@name='Customer Invoice'])