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
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
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