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.create()

Creates a new item or adds new associations to an existing item.

See Also

rb.catalogue.item.modify()    rb.catalogue.item.remove()   

Syntax

number = rb.catalogue.item.create(newItemInfoType)

Parameters

The 'item.create' method takes 1 parameter:

Name Type/Value Range/Length Description
newItemInfoTypestruct item.itemInfoTypesee definition

Results

The 'item.create' method returns number:

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

Remarks

A new item is created if an item id is not specified. If an item is to be created using a copy of a previously retrieved item, it is necessary to set the itemID to undefined (e.g. itemInfoType_object.itemID = void 0; ) before calling this method. It may also be necessary to set containerID to undefined unless the new item is to be grouped with the copied item.

Prices and file associations can be created when the item is first created and this method behaves like modify() when a valid itemID is specified.

Whitebeam release 1.3.36
(loadtime : 65ms)