Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
device:capability
Retrieves value of device capability and sets it in current ICS scope for a currently loaded device object.
Syntax
<device:capability name="name of the loaded device object" capability="capability name of the loaded device object" output="output"/>Parameters
name (required)
- Input. Name assigned to the loaded device object whose capability value you want to get. This device must be loaded and assigned this name before you can pass its name to this tag. (See
device:load
)capability (required)
- Input. Name of the capability whose value you want to retrieve.You can look into the device repository for the device capability names.
output (required)
- Input. Name of the output variable to create to store the value of the capability. If you do not supply a name for this variable, Sites uses one with the same name as the capability.
Description
The
device:capability
tag retrieves device capability name and sets it in current ICS scope for a currently loaded device object.You typically use this tag to extract the device information (from a loaded device object).
Error Numbers
Possible values of
errno
include:
Value Description -3700 The requested capability name is not supported by the loaded device. -3702 No device object found with the given name.Example
<device:capability name="loadeddeviceobjname" capability="capability name" output="outVarName"/>See Also
device:hascapability device:load device:get
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.