... |
... |
@@ -35,17
+35,19 @@ |
35 |
35 |
|delimiter|The delimiter for the placeholder values, see //queryParameter//. Defaults to a comma {{code}},{{/code}}|No |
36 |
36 |
{{/table}} |
37 |
37 |
|
38 |
|
-When you want to initiate an LDAP query from a form via JavaScript, use the URL provided by the JavaScript object [[window.XFC_METADATA>>doc:Main.Formular-Metadaten]]. The LDAP query URL can be accessed via {{code language="javascript"}}window.XFC_METADATA.urls.datasource_ldap{{/code}}. |
|
38 |
+When you want to initiate an LDAP query from a form via JavaScript, use the URL provided by the JavaScript object [[window.XFC_METADATA>>https://jsdocs.formcycle.eu/jsdocs/de/modules/_formcycle_v6_de_d_.html#xfc_metadata]]. The LDAP query URL can be accessed via {{code language="javascript"}}window.XFC_METADATA.urls.datasource_ldap{{/code}}. |
39 |
39 |
|
40 |
40 |
The LDAP queries returns a JSON object that can be parsed with {{code language="javascript"}}JSON.parse(...){{/code}} |
41 |
41 |
|
42 |
42 |
== Examples for LDAP queries == |
43 |
43 |
|
44 |
|
-The following shows how to retrieve the result of an LDAP query via an HTTP request. [[The demo pages also include an example illustrating how to setup a select element with the result of an LDAP query.>>doc:AuswahlLDAP]] |
|
44 |
+The following shows how to retrieve the result of an LDAP query via an HTTP request. [[The demo pages also include an example illustrating how to setup a select element with the result of an LDAP query.>>doc:Examples.SelectOptionsLDAP]] |
45 |
45 |
|
46 |
46 |
Assuming an LDAP query has been created already and was named //MyQuery//. |
47 |
47 |
|
48 |
|
-{{code}}((distinguishedName=?,?){{/code}} |
|
48 |
+{{code}} |
|
49 |
+((distinguishedName=?,?) |
|
50 |
+{{/code}} |
49 |
49 |
|
50 |
50 |
You need to provide two values for the the two placeholders (question marks). Send a GET request to the following URL to perform the LDAP query: |
51 |
51 |
|
... |
... |
@@ -72,4
+72,3 @@ |
72 |
72 |
}).success(callback); |
73 |
73 |
} |
74 |
74 |
{{/code}} |
75 |
|
-{{/table}} |