PAttributeCreate URL
Adds new attributes (specifications) to personalized dictionary.
URL structure
- http:// host_name/path/
- The fully qualified name of your HCL Commerce Server and the configuration path.
Parameter values
- lang_id
- Required: Language ID.
- attrName
- Required: Name of the personalized attribute.
- attrDesc
- Optional:A description of the personalized attribute.
- attrType
- Required: The specified data type for the attribute. Valid data types are: String, Integer, Float, Datetime, Freeform and Bigint.
- sequence
- Required: Sequence number of attribute in online display of attributes.
- encryptFlag
- Required: Encryption is required or not for Personalized Attribute values. Allowable values: 0 = No, 1= Yes, default is 0.
Example
The following example creates the personalized attribute "Color".
http://myhostname/webapp/wcs/stores/servlet/PAttributeCreate?lang_id=-1&attrName="Color"&
attrDesc="Color"&attrType="String"&sequence=1&encryptFlag=0&URL=/
Behavior
- Adds new attributes (specifications) to the personalized dictionary.
Exception conditions
- The parameter lang_id must be an integer.
- The parameter attrName must be provided.
- The parameter attrType must be provided.
- The parameter sequence must be an integer.