OK, so based on your latest feedback, your question really should have been:
How can I display the result of an LDAP query (in my case a list of OUs), done with some Java code, in a IBM Notes Dialog List?
You are out of luck with "classic" Domino Designer. A classic notes form only offers you (either via the Designer, but also via DXL) the following options for a dialog list:
- Enter choices (one per line): Type a list of choices in the edit box.
- Use formula for choices: Type a Lotus Notes formula in the formula window to generate a list of choices.
- Use Address dialog for choices: This option displays the Names dialog box so users can select names from a Personal Address Book or Domino Directory.
- Use Access Control list for choices: This option brings up a list of people, servers, groups, and roles in the access control list for the database
- Use View dialog for choices: This option brings up a dialog box containing entries from a column in a view
So no way of adding the output of some Java code to the Dialog List.
What you can do is:
- Use XPages. With XPages, you can have Java code to fill any kind of List, Dialog Box, ...
- Use your Java code in a scheduled Notes Agent to "sync" the LDAP entries into the Notes database by creating notes documents, eg. "OU" which represent the LDAP entries. Using a View, you could then use the "Use View dialog for choices" option of the Dialog List to display them to the user.
- Use TDI (entitlement for this comes with Domino) to sync the LDAP entries into the Notes database by creating notes documents, eg. "OU" which represent the LDAP entries. Using a View, you could then use the "Use View dialog for choices" option of the Dialog List to display them to the user.
- Use your Java code in a scheduled Notes Agent to update a field inside a profile document with the list of "OUs". Then use a @-formula to display the values in the Dialog List.
Solution (2), (3) and (4) have the disadvantage of not displaying "realtime" info of the LDAP directory.
I hope I understood your problem correctly. If so, please edit content and title of your question acccordingly.