I have a view sorted on the first column that contains a multi value field and each value is shown as a separete entry.I need to read in LS each entry of the view and I need to get the value that is actually shown on the entry.
I tested with one document with two values in the first field and I see two entries in the view.
But with the following I always have the same value in my LS variables
Dim rap_v As NotesView
Dim rap_c As NotesViewEntryCollection
Dim r As NotesViewEntry
Dim rn As NotesViewEntry
…
Set rap_v = db.GetView(“($RapDayAg)”)
rKey = “04.06.2010”
Set rap_c = rap_v.GetAllEntriesByKey(rKey, False)
Set r = rap_c.GetFirstEntry
While Not r Is Nothing
var = r.ColumnValues(0)
If Isscalar(var) Then rDayAg = var Else rDayAg = var(0)
Set rn = rap_c.GetNextEntry(r)
If Not rn Is Nothing Then
var = rn.ColumnValues(0)
If Isscalar(var) Then rnDayAg = var Else rnDayAg = var(0)
MsgBox rDayAg + " " + rnDayAg
End if
Set r = rn
Wend
the variables rDayAg and rnDayAg show the same value while the two entries in the view show different value.
What am I doing wrong ?
Thx