Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
proxy:addstoreitem
Adds a proxy asset to a data store.
Syntax
<proxy:addstoreitem store="store name" type="proxy asset type" id="proxy asset id"> <proxy:argument name="property name" value="property value" /> <proxy:argument name="property name" value="property value" /> ... <proxy:addstoreitem>Parameters
store (required)
- Name of a data store previously defined by
proxy:createstore
.type (required)
- type of the proxy asset.
id (required)
- id of the proxy asset.
proxy:argument
- contains an arbitrary name/value pair to be added to the store data.
When writing a store for the search grid, these arbitrary properties can be displayed by configuring the search grid appropriately (see the Developer's Guide for customizing the contributor UI for more details)Description
This tag is meant to be used together with the proxy:createstore and proxy:tojson tags.
These utility tags simplify the generation of json data which can be consumed by compliant dojo widgets, such as the data grid widget used to render search results.Example
<proxy:createstore store="assets" /> <%-- get data from the external repository --%> <% String externalId = ...; // get external id String name = ...; // get string from external content usable as proxy asset name String foo = ...; // get other arbitrary property %> <%-- register eexternal content item as proxy asset --%> <proxy:register externalid="<%=externalId%>" type="ProxyAssetType" name="<%=name%>" varname="proxyAssetId" > <proxy:addstoreitem store="assets" type="ProxyAssetType" id='<%=ics.GetVar("proxyAssetId")%>' > </proxy:argument name="foo" value="<%=ics.GetVar("foo")%>" > </proxy:addstoreitem>See Also
proxy:addstoreitem
proxy:tojson
proxy:register
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.