AttributeValueDelete command

This command deletes a catalog entry's defining attribute value, in all languages. This command is called by the Product Management tools in the WebSphere Commerce Accelerator.

Command structure

http://host_name/path/
The fully qualified name of your WebSphere Commerce Server and the configuration path.

Diagram of the command structure: the command starts with the fully qualified name of your WebSphere Commerce Server and the configuration path, followed by the command name, AttributeValueDelete  and the ? character. End the command with a list of parameters in the form of name value pairs. Separate each name value pair with the & character. For a detailed description of the parameters and their values, refer to the list entitled Parameter values.

Parameter values

attrvalueId
(Required) The reference number of the attribute value. You must specify either attrivalueId or catentryId.
catentryId
(Required) The reference number of the catalog entry. If only the catalog entry ID is supplied, then the command will delete all attribute values (in all languages) associated with that catalog entry. If the attribute value ID is also supplied, then only the specified attribute value (in all languages) is deleted. Do not use catentryId =0. You must specify either catentryId or attrivalueId.
force
0 = no and will markForDelete all items that are associated with that attribute value; 1=yes and will delete the items from the database.
URL
The URL to be called when the command completes successfully.

Example 1

The following example deletes attribute value 9222 in all languages and will mark for delete all the items associated with the attribute value:

http://host_name/webapp/wcs/stores/servlet/AttributeValueDelete?
attrvalueId=9222&force=0&URL=LogonForm

Example 2

The following example deletes attribute value 9222 in all languages and will mark for delete all the items associated with the attribute value:

http://host_name/webapp/wcs/stores/servlet/AttributeValueDelete?
attrvalueId=9222&force=1&URL=LogonForm

Behavior

Exception conditions

Either attrvalueId or catentryId is not valid.