Afternoon all,
Im new to notes and in need of some help.
I have used a dialog list with a list of options. How do i get the forms that i have created to open according to the option selected. I am sorry if this is a really tideous question but I really do need some help on this.
Thank you in advance
Subject: New-be! Dialog List
Hi Holly,
Sorry I am having a tough time figuring out what it is that you want to do. Is it:
A) You want to create new documents based on the form selected by the user from the list.
OR
B) You want to open an existing document
OR
C) I don’t have a clue and you are trying to do something totally different.
Subject: RE: New-be! Dialog List
Hi Dave,
Sorry for not making myself clear…
I would like to open exisiting froms that I’ve previously created.
Does that help?
Thanks
Subject: RE: New-be! Dialog List
Holly,If you mean you want to compose the forms you created, create a button that composes a form based on dialog list choices. Example:
Given dialoglist field name is “myChoices” and it has two values: “choice1” and “choice2”, the formula for your button would be:
@if(myChoices=“choice1” ; @command([compose] ; “Form1”); myChoices=“choice2” ; @command([compose]; “Form2” ; “”)
If you don’t want to click a button, put equivalent lotusscript code in the onchange event of your dialoglist field
Subject: RE: New-be! Dialog List
Hi Holly,
I think Basir misunderstood what you want. It you are looking to open existing documents, then his advice will not help you because his solution is for composing new documents. If this is actually what you want, then please disregard the rest of this message.
If you are attempting to create a mechanism for allowing users to locate and open existing documents in your database, you do not have to code anything because Notes already provides a UI element called a “view” for this purpose. Think of it like a traditional database view from the relational world, but in addition to serving up the data, it displays it as well. When a user double-clicks on a line of the view, Notes opens the document so that the user can view or edit it.
Have a look at the design of your mail database to see how this mecahnism works. Sorry for the crappy explanation, but I cannot really think of any other way to express it. You may want to talk to someone else in your company who has some Notes development experience to help you get started. The help file is another fantastic resource for illustrating the basic workings of Notes. They explain things much more clearly that I ever could.
Subject: RE: New-be! Dialog List
Hi Dave,
Thanks for your help.
Just a quick question to see i understand what you have just explained…
Basically if i create a view based on the options within the Dialog…would i then need to embed this onto my form for the user to view the displayed results and have the ability to click on the option within the view…?
Or am I completly getting the wrong idea of a view?
Thanks
Holly
Subject: RE: New-be! Dialog List
Holly,
You are on the right track. You would create a view to display the documents that you want and then put the view on your form (called an “embedded view”). When a user 2x clicks on a view entry, Notes open the the corresponding document.
Subject: RE: New-be! Dialog List
Hi Dave,
Thanks your a star! :o)