|
Whitebeam Template Reference Documentation
|
Contact Template
OUInfo()
Returns OU information.
See Also
rb.contact.createOU rb.contact.Delete rb.contact.createOU Syntax
OUData = rb.contact.OUInfo(ID, uName)
Parameters
The 'OUInfo' method takes 2 parameters:
Name | Type/Value | Range/Length | Description | ID | number | -1, or positive integer | Required. Either -1, meaning return the OU with Unique Name uName,
or a valid OU ID as returned from a previous createOU()
or get() call | uName | string | 1-31 characters | Optional. If ID == -1, then the OU with the given uName is returned, otherwise this field is ignored and may be empty. |
Results
The 'OUInfo' method returns structure:
Type/Value | Range/Length | Description |
struct OUData |
see definition | OU information.
If no OU which matches the parameters exists, then an undef type will be returned instead of the struct.
|
Example The following code gets OU information for the OU "mega":
var mega = rb.contact.OUInfo(-1, "mega");
if(mega != null)
rb.page.write("OU name is "+mega.name+"<BR>");
|
|
(loadtime : 92ms) |