Whitebeam Template Reference Documentation

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Template Reference Documentation

Catalogue Template

item.remove()

Deletes an item, its prices and associations to categories, files and contacts.

Syntax

number = rb.catalogue.item.remove(itemID, andFiles)

Parameters

The 'item.remove' method takes 2 parameters:

Name Type/Value Range/Length Description
itemIDnumberValid itemID Required. Identifier of an item to be removed.
andFilesbool  Optional, default = 0
If specified then remove all files that are attached to this catalogue item.

Results

The 'item.remove' method returns number:

Type/Value Range/Length Description
number itemID, -1itemID of the deleted item.

Remarks

The item is irreversibly removed along with prices, categories, file and contact associations. Files are not removed but may implicitly become orphaned. Also, contentsMkr of its parent category will be altered if this was its only sub item.

For a container item, any contained items will become self-contained. For a contained item, its container will be made self-contained when it has no more contained items.

Whitebeam release 1.3.36
(loadtime : 63ms)