Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
asset:isempty
Determines whether a field in an asset is empty.
Syntax
<asset:isempty name="name" field="field name" output="variable name" />Parameters
name (required)
- Name of a previously loaded asset. See
asset:load
.field (required)
- Name of the field in the object.
output (required)
- Name of output variable.
Description
The result of this tag (held in the output variable) is either the string "true" or the string "false." If the tag results in an error, no output variable is created and
errno
is set.Error Numbers
The possible values of
errno
include:
Value Description -10004 Missing required attribute. -10005 No object by specified name.Example
This code checks if there is something in the urlpicture field and if so, displays it:
<asset:isempty name="anAsset" field="urlpicture" output="hasnodata"/> <ics:if condition='<%=ics;GetVar("hasnodata").equals("false")%>' > <ics:then> <asset:get name="anAsset" field="mimetype" output="asset:mimetype"/> Picture: <render:satelliteblob asset="anAsset" field="urlpicture" blobheader='<%=ics.GetVar("asset:mimetype")%>' service="IMG SRC"> <render:argument name="alt" value='<%=ics.GetVar("asset:alttext")%>'/> <render:argument name="hspace" value="5"/> <render:argument name="vspace" value="5"/> </render:satelliteblob> </ics:then> </ics:if>asset:get
asset:load
asset:scatter
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.