Zur optimalen Darstellung des Formulars ist aktiviertes JavaScript erforderlich!
For an optimal representation of the form activated JavaScript is required!
Get values of an LDAP query in a selection field and Autocomplete
Demo for filling the options of a selection field with the results of an LDAP query ans also a example for Autocomplete with LDAP
Previously, an LDAP query was configured (see
help
), which will be executed via Javascript and the results will be set as options for a selection field.
Sample query
List of companys from LDAP (selOrganisation)
Option 1
Option 2
Option 3
Send to test loading
In the following example the LDAP query named "
DemoQuery
" is called. As a precondition, the LDAP query has to already exist. For this you need to configure an LDAP connection before or use an already existing client configuration.
In this example,
(sn=*)
is used as the query and all entries from the list of LDAP data are returned as a result.
You can find more information about the getLdapQuery() function in our
Javascript API
Enable JavaScript to see the sample code
Sample autocomplete
List of employees from LDAP as autocomplete (tfEmployees )
Mail from selected employee
Organisation from selected employee
In the following example the LDAP query named "
DemoQueryAutocomplete
" is called. In that example link with queryParameterValue "mus". As a precondition, the LDAP query has to already exist. For this you need to configure an LDAP connection before or use an already existing client configuration.
In this example,
(cn=*?*)
is used as the query. If you enter a name, the result will be a list of all full names of the employee which match with the entered value. Because of the wildcard operator * it will search in the whole name.
You can find more information about the autocompleteLDAP() function in our
Javascript API
Enable JavaScript to see the sample code