Versions Compared

Key

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

...

Single-value Attributes

Frevvoproduct
 provides several  will automatically pull the logged in user's First Name, Last Name, Email from Active Directory. The designer can use built-in methods that can be used in a business rule to populate controls on your forms.  The For example, the business rule shown fills the respective form fields with the First/Last Names and Email Address of the logged in user. These values are not coming from Active Directory.

Section
Column
width50%
Code Block
if(form.load)
{
EmployeeEmail.value=_data.getParameter('subject.email');
FirstName.value=_data.getParameter('subject.first.name');
LastName.value=_data.getParameter('subject.last.name');
}
Column
width50%

If you want to pull additional information, you must add a context parameter to the <frevvo-home>\tomcat\conf\catalina\localhost\frevvo.xml file. The configuration parameter is "com.frevvo.security.Idap.customAttributes" configuration parameter where and the value  is 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. 

...

Code Block
if(form.load)
{
FirstName.value=_data.getParameter('subject.givenName');
MiddleInitials.value=_data.getParameter('subject.initials');
LastName.value=_data.getParameter('subject.sn');
HomePhone.value=_data.getParameter('subject.telephoneNumber');
EmployeeEmail.value=_data.getParameter('subject.mail');
}

The image shows a simple from 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 Added

...

 

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. First of all, make sure the carLicense attribute is configured in the frevvo.xml file.  

...