Users must select a document in a dialogbox.The selectionlist comes up when the user clicks a button on the dialogbox.
When I use the LS-method NotesUIWorkspace.Picklistcollection, then Picklist comes up, but an error is displayed: Cannot execute the specified command.
When I use the NotesuiWorkspace.Prompt, I don’t get an error and i can display a list of choices.
I prefer the use of picklistcollection because I need the document returned.
The code with Picklist:
Sub Click (source As Button)
Dim w As New NotesuiWorkspace
Dim doccol As NotesdocumentCollection
Messagebox “OKE1”
set doccol=w.Picklistcollection(PICKLIST_CUSTOM,False,servername,dbname,viewname,“Documents”,“Select one document”)
Messagebox “OKE2”
When debugging, the error comes after the picklist-line, before messagebox “OKE2”.
Koos van Harmelen
Subject: Picklist or prompt in Dialogbox
Your code looks fine to me. However, are you sure that the contents of “servername”, “dbname” and “viewname” is ok ? Do these values point to an existing view in your database
Subject: RE: Picklist or prompt in Dialogbox
Thanks for your response.I already checked this, also in the LS-debug mode.
Subject: RE: Picklist or prompt in Dialogbox
Any resolution to this, I’m having exactly the same problem v6.5.1 though.
Cheers
Subject: RE: Picklist or prompt in Dialogbox
Ah yeh, one dumb point to me, I was making the call and referencing column 3 for the return value. Well, there’s only one column in the view. Hmmmm.
Subject: RE: Picklist or prompt in Dialogbox
I believe the problem is the view has ViewCollapseAll in Post Open or something similar
Subject: Picklist or prompt in Dialogbox
Try it does with formule insted of LN:
temp := @PickList ( [Custom]:[Single] ; server : db ; view ; write1 ;write2 ; nr_column);
Subject: RE: Picklist or prompt in Dialogbox
Thanks for your responseI already tried this, but the same error.