Get Column Totals with LotusScript

December 31, 2008 – 1:12 pm

Here is a quick post in addition to my recent post on how to get sums / subtotals for a given category in a view with LotusScript.

totalsls

Assume, you want to get the total number of solved tickets. In my sample the value in question is located in column 7 at the very end of the ($ddTickets_ByMonthRep) view.

Here is the code that does the trick.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Sub Click(Source As Button)
	Dim s As New NotesSession
	Dim db As NotesDatabase
	Set db = s.CurrentDatabase
	Dim v As NotesView
	Dim n As NotesViewNavigator
	Dim e As NotesViewEntry
	Set v = db.GetView("($ddTickets_ByMonthRep)")
	Set n = v.CreateViewNav
	Set e = n.GetLast
	If e.IsTotal Then
		Msgbox e.ColumnValues(7)
	End If
End Sub

Related posts:

  1. Expand last column in Grid
  2. Get Logical / physical size and DAOS size with LotusScript
  3. Get View Column Sums With LotusScript
  4. Domino Directory – Column Icon
  5. SnTT: @ServerAccess in LotusScript

Sorry, comments for this entry are closed at this time.