Pre-population of Fields

Assuming that you have set up the above configuration parameters, when you load the ExtraView Add screen, the fields you selected for ADD_SCREEN_LDAP_FIELDS in Configuration.properties will pre-populate with values from the LDAP directory, according to the LDAP mappings configured in Configuration.properties.

In the below example, the circled fields were all pre-populated from the LDAP entry based on the current user (Campbell, Rob).


Example of fields pre-populated from an LDAP server

Popup Link Configuration

After you have decided which fields to put on your Add and Edit screen layouts, you can pick one (usually a primary identifier such as the user’s name) to have a URL link popup window beside it. This popup window will allow for dynamic searching of the LDAP directory. It will also populate multiple fields on the Add or Edit screen with the values for the primary identifier. ExtraView fields will be populated from the LDAP directory based on the mappings you set up in Configuration.properties.

First, configure the link with the appropriate URL, within the Data Dictionary. Full instructions for this are in the Data Dictionary section of this administration guide.


Data Dictionary entry where the popup link is configured

  • Set Display as URL to Yes.
  • Enter the first part of the URL, exactly as shown. Do not complete the field entry yet

    ?p_action=doDisplay&p_option=security.SearchLDAPDisplay

  • Append to the URL the list of fields you want populated in the following pattern, but using the fields for your installation:

    &FIELD=USR_NAME&FIELD=USR_TITLE&FIELD=USR_DEPT
    &FIELD=USR_EMAIL&FIELD=USR_PHONE
    &FIELD=USR_PHONE2&FIELD=USR_MOBILE
    &FIELD=USR_FAX&FIELD=USR_CITY&FIELD=USR_STATE
    &FIELD=USR_BUILDING

    where the pattern for each field is &FIELD=DataDictionaryName

    The final URL will look something like this:

    ?p_action=doDisplay&p_option=security.SearchLDAPDisplay
    &FIELD=USR_NAME&FIELD=USR_TITLE&FIELD=USR_DEPT
    &FIELD=USR_EMAIL&FIELD=USR_PHONE
    &FIELD=USR_PHONE2&FIELD=USR_MOBILE
    &FIELD=USR_FAX&FIELD=USR_CITY&FIELD=USR_STATE
    &FIELD=USR_BUILDING

Popup Link Usage

When you click on the popup link beside the primary identifier, ExtraView will open a new window, where you can search for users by typing in search criteria. This is shown in the following screen shot.


Searching for users in the LDAP directory

After using the search criteria, click on one of the results in the ID field. The fields on the parent add or edit screen will be populated with all the fields you requested.