|
Whitebeam Template Reference Documentation
|
Contact Template
individualInfo()
Returns information on a named individual in the contacts database.
See Also
rb.contact.createIndividual rb.contact.modifyIndividual Syntax
individualData = rb.contact.individualInfo(ID, uName)
Parameters
The 'individualInfo' method takes 2 parameters:
Name | Type/Value | Range/Length | Description | ID | number | -1, or positive integer | Required. Either -1, meaning return the individual with Unique Name uName,
or a valid OU ID as returned from a previous createIndividual()
or get() call | uName | string | 1-31 characters | Optional. If ID == -1, then the individual with the given uName is returned, otherwise this field is ignored and may be empty. |
Results
The 'individualInfo' method returns structure:
Type/Value | Range/Length | Description |
struct individualData |
see definition | Individual info. If no individual matching the parameters exists, then an undef type will be returned instead of the struct.
|
Example The following gets the user record with uName "fred" and prints out the full name:
fred = rb.contact.individualInfo(-1, "fred");
if(fred != null)
rb.page.write("Name is "+fred.name);
|
|
(loadtime : 87ms) |