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

modifyOU()

Modifies an OU entity

See Also

rb.contact.remove
rb.contact.link
rb.contact.createOU

Syntax

number = rb.contact.modifyOU(values)

Parameters

The 'modifyOU' method takes 1 parameter:

Name Type/Value Range/Length Description
valuesstruct OUDatasee definition Required. New community OU info

Results

The 'modifyOU' method returns number:

Type/Value Range/Length Description
number -1, or positive integer ID 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 OU information for "mega", and modifies the description string

	  var mega = rb.contact.communityInfo(-1, "mega")
	  if(mega != null){
	  mega.description = "A new description";
	  rb.contact.modifyOU(mega);
	  }
	
Whitebeam release 1.3.36
(loadtime : 114ms)