Dialog list query

HiI need to know if it is possible to do the following:

I have a dialog list field, looking up to the address book, my question is is it possible to disable the cursor on the field forcing the user to click on the arrow to select names?

Thanks in advance.

C

Subject: Dialog list query

yes you can do that. create a computed text field (in which you want to populate the lookup value). place a button (or more appropriately an ellipsis - an image such as a down arrow just like the one in dialoglist) beside the field. in the onclick event of the button/image write lotusscript code to do the lookup, then set the value of the lookup using uidoc.fieldsettext(“”, ).

Subject: RE: Dialog list query

Many thanks for the response. How would you do a lookup to address dialog box using lotusscript? Not to adv on ls.C

Subject: RE: Dialog list query

see “Addressbooks” property of NotesSession class.

Subject: RE: Dialog list query

dim ws as notesuiworkspaceDim s As notessession

Dim db As NotesDatabase

Dim persons As NotesDocumentCollection

Dim person As notesdocument

Dim fullname As NotesItem

Dim xname As NotesName

Dim martitem As NotesItem

set ws = new notesuiworkspace

Set s = New notessession

Set db = s.currentdatabase

’ ********************************************************************************

’ Prompt the user to select a name.

’ ********************************************************************************

Set persons = ws.PickListCollection( PICKLIST_CUSTOM, False, db.server, “names.nsf”, “People”, “Select a name”, “Select a name”)

If persons.Count < 1 Then Exit Sub

Set person = persons.getfirstdocument

Set fullname = person.GetFirstItem(“Fullname”)

Set xname = New NotesName( fullname.values(0) )

etc