?
Solved

Read values from a Multi select List box (Dialog box) in lotus notes

Posted on 2003-02-21
5
Medium Priority
?
1,270 Views
Last Modified: 2013-12-18
How do I read values from a multi select list box (dialog list) from a notes view?
example I have a dialog list called "Industry" this has three values automobile, engineering, petroleum of which the first two are checked for document 1. how do I process these values in a loop.
0
Comment
Question by:RaghunathR
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
Arunkumar earned 400 total points
ID: 7998466
Lets say you select the document from view and want to run this code from the action button,  Here is a sample piece of code that you can implement to read all the values that are in the list as selected.

Dim ss as new notessession
Dim db as notesdatabase
Dim doc as NotesDocument
Dim dc as NotesDocumentCollection
Set db = ss.CurrentDatabase

Set dc = db.UnProcessedDocument
'Gets the selected documents
'from the view as a collection object
Set doc = dc.GetFirstDocument

Do While Not doc is Nothing

Forall v in doc.FIELDNAME ' INDUSTRY
Msgbox M
End Forall

Set doc = dc.GetNextDocument(doc)
Loop

0
 
LVL 7

Assisted Solution

by:scottrma
scottrma earned 400 total points
ID: 7998701
Should probably be:

Dim item as NotesItem
Set item = doc.GetFirstItem("Industry")
If Not (item Is Nothing) Then
     Forall v In item.Values
          Messagebox(v)
     End Forall
End If

Regards,

Scott
0
 
LVL 9

Expert Comment

by:Arunkumar
ID: 7999817
Whatever !
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question