Whitebeam Object Definition

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 Object Definition

Method Description

Interest.save()

Save changes to an existing interest group.

Syntax

number = Interest.save()

Parameters

The 'Interest.save' method takes no parameters

Results

The 'Interest.save' method returns number:

Type/Value Range/Length Description
number   ID of the interest group is correctly saved, -1 otherwise.

Remarks

This method makes changes to the interest group object permanent by writing them the the underlying persistent store (database). This method should be used on interest groups that have already been created (the ID field contains the allocated unique ID for the member - but generally provided you use the 'Interest.get' you don't have to worry about this!).

Example

               var interestgroup = new Interest;
               interestgroup.ID = groupId;       // Generally obtained from a previous page.
               interestgroup.get();

               // make changes here!

               interestgroup.save();
            
Whitebeam release 1.3.36
(loadtime : 9ms)