Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Configure Retrievable Attributes 

Single-value Attributes

...

Attributes 

If you want to pull additional information from Active Directory into your form, you must add a context parameter to the <frevvo-home>\tomcat\conf\catalina\localhost\frevvo.xml file. The configuration parameter is "com.frevvo.security.ldap.customAttributes" and the value is a comma separated list of attribute names to be retrieved. Let's use the employee's Middle Initials and Home Phone as an example. The attributes for Middle Initials and Telephone Number are initials and telephoneNumber respectively. 

...

     5. Save the file after all your changes are made. Restart 

Frevvoproduct
 Add the additional lines to the business rule to populate the Middle Initials and Home Phone fields. 

...

...

if(form.load)
{
FirstName.value=_data.getParameter('subject.first.name');
MiddleInitials.value=_data.getParameter('subject.initials');
LastName.value=_data.getParameter('subject.last.name');
HomePhone.value=_data.getParameter('subject.telephoneNumber');
EmployeeEmail.value=_data.getParameter('subject.email');
}

The image shows a simple form using the rule above to pull the Employee's First Name, Middle Initial, Last Name, Home Phone and Email Address from Active Directory on the LDAP server.

Image Removed

Multi-valued Attributes

Attributes with more than one value are also supported. For example, The carLicense attribute can return multiple licenses. You can write a rule to populate dropdown options with those options. Make sure the carLicense attribute is configured in the frevvo.xml file and of course, there are multiple carLicense attributes,each one containing a different value for the dropdown options,set up for appropriate users on the LDAP server.  

...

A JSON array string listing multiple car licenses is returned and it can be used in a 

Frevvoproduct
 rule. This rule will populate the options of a dropdown control named carLicense.

...