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

Contact Template

modifyCommunity()

Modifies community information.

See Also

rb.contact.remove
rb.contact.link
rb.contact.createCommunity

Syntax

number = rb.contact.modifyCommunity(values)

Parameters

The 'modifyCommunity' method takes 1 parameter:

Name Type/Value Range/Length Description
valuesstruct communityDatasee definition Required. community information for new community

Results

The 'modifyCommunity' method returns number:

Type/Value Range/Length Description
number -1, or positive integerID of the modified record, or -1 if the record couldn't be modified.

Remarks

Modify changes all of those properties which are set in the passed values object. Properties which are not set in the object will not be changed in the contact database. ID must be set for modify to succeed

Example

The following example gets the community information for "friends", and modifies the description string

	  friends = rb.contact.communityInfo(-1, "friends")
	  if(friends != null){
	  friends.description = "A new description";
	  rb.contact.modifyCommunity(friends);
	  }
	
Whitebeam release 1.3.36
(loadtime : 61ms)