Home > Contents > Index >
ASSET.SITEPARENT
Queries the SitePlanTree table and then loads the parent page of the specified page asset into memory as an object.
Syntax
<ASSET.SITEPARENT NAME="pageName" OUTNAME="parentPageName"/>Parameters
NAME (required)
- Input. The name of the page asset whose parent page you want to load. This page asset must be loaded and assigned a name before you can pass its name to this tag. (See
ASSET.LOAD
.)OUTNAME (required)
- Input. The name to assign to the parent page object.
Description
This tag queries the SitePlanTree table and then loads as an object the parent page of the specified page asset. It functions similarly to
ASSET.LOAD
.You typically use this tag to display information about the hierarchical position of the current page; for example, to create a link to the current page's parent page. This tag determines the parent page and then loads the parent page in one database query.
Error Numbers
The possible values of
errno
include:
Value Description -112 No parent exists. -10002 There is a missing method for the implementing class. -10003 The method could not be invoked successfully. -10004 A required parameter is missing. -10005 The requested object is not in the object pool (is not loaded into memory). -10007 The version of the object is not valid. -10008 The node ID of the object is not valid. -10009 More than one object met the specified criteria. -12007 The specified value is not valid.Example
This code loads a page asset, loads its parent page, extracts the name of the parent page asset, and then displays the name:
<ASSET.LOAD NAME="myPage" TYPE="Page" OBJECTID="Variables.p"/> <ASSET.SITEPARENT NAME="myPage" OUTNAME="grandparent"/> <ASSET.GET NAME="grandparent" FIELD="name" OUTPUT="grandparent:name"/> Up one level to <CSVAR NAME="Variables.grandparent:name"/>.See Also
The tags described in Role List Tags .
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.