Dim NextEntry As NotesViewEntry Set CurViewNav = CurView.CreateViewNav Set CurViewEntry = CurViewNav.getFirst temp = "<tr>" Dim count As Integer While Not Isnull(CurViewEntry) 'Set nextEntry = CurViewEntry If CurViewEntry.iscategory Or CurViewEntry.istotal Then For i = 0 To Ubound (CurViewEntry.ColumnValues) temp = Temp + "<td>" + CurViewEntry.ColumnValues(i) + "</td>" Next i Temp = Temp + "<tr><br>" Print temp End If Set CurViewEntry = CurViewNav.getNext(CurViewEntry) Wend
If the categories in the view were 1, 2 and 3, the output would look like this:
It looks like the problem is that you're not clearing out the contents of the temp variable after each loop iteration. Each time through, the temp variable just keeps getting more data appended to it, instead of starting out fresh for each category.
Simply adding temp = "<TR>" before Wend should do the trick.
Do you have comments on this Ask the Expert question and response? Let us know.
Dig Deeper on Lotus Domino Designer
Related Q&A from Brad Balassaitis
Upon moving to Lotus Notes 8, some Lotus Notes users received an error message stating: 'Database has not been opened yet.' Find out why here. Continue Reading
Discover what security settings you need to fix if you encounter the Lotus Notes database error: 'database is not opened yet.' Continue Reading
Learn the Formula language code that you can use if you'd like your Lotus Notes form with embedded views to stop displaying all response documents. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.