Home > Contents > Index > 
VDM.SAVESCALAROBJECT
Saves an object to the Content Server database as a visitor attribute.
Syntax
<VDM.SAVESCALAROBJECT ATTRIBUTE="attribute" OBJECT="objectname"/>Parameters
ATTRIBUTE(required)- Input parameter. Name of the visitor attribute to save the object as.
 
OBJECT(required)- Input parameter. Name of the object to save as the visitor attribute. This object must implement either the standard Java interface,
 Serializable, or the Content Server implementation of the standard Java interface,IStorableObject.
Description
Use this tag to store a shopping cart across sessions.
Example
For example, using the CS-Engage visitor attribute form, you create a visitor attribute of type binary and name it
storedcart.You code your application pages to create a cart to be stored when the session ends:
<CART.CREATE NAME="localcart"/>Then you use this tag to store that cart object as the visitor attribute named
storedcart:<VDM.SAVESCALAROBJECT ATTRIBUTE="storedcart" OBJECT="localcart"/>The next time the visitor arrives at the site, you can use
<VDM.LOADSCALAROBJECT ATTRIBUTE= "storedcart"/>to retrieve the stored cart.
Home > Contents > Index > ![]()
FatWire XML Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.