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

whosIn()

Given a community or OU returns all the individuals and OUs that are linked to it.

See Also

rb.contact.memberOf
rb.contact.link

Syntax

dataIterator = rb.contact.whosIn(container)

Parameters

The 'whosIn' method takes 1 parameter:

Name Type/Value Range/Length Description
containernumberpositive integer Required. The ID of a valid OU, or community

Results

The 'whosIn' method returns an iterator of structure:

Type/Value Range/Length Description
struct data see definition array of contained individuals

Example

The following example gets all the members of OU "friends"

	  var friends = rb.contact.communityInfo(-1,"friends");
	  var results = rb.contact.whosIn(friends.ID);
	  while(results.getNextRow())
	  rb.page.write("User " + results.name +"is a member of friends<BR>");
	
Whitebeam release 1.3.36
(loadtime : 64ms)