Manage Learn to apply best practices and optimize your operations.

Select date range for view

On a view that asks for a "from" date and a "to" date, this button rebuilds the view in front of your eyes to reflect your date changes.

On a view that asks for a "from" date and a "to" date, this button rebuilds the view in front of your eyes to reflect your date changes. Note: You must have designer access in the ACL to run this.

  Code: Sub Click(Source As Button)
 Dim ws As New NotesUIWorkspace
 Dim uiview As NotesUIView
 Dim view As NotesView
 Dim formula As String

 
 Dim from1 As String
 Dim to1 As String
 from1 = Inputbox$("From?")
 to1 = Inputbox$("To?")
 formula = "Select form =" + 
{"} + "Admin Data Form" + {"}+ 
"& status =" +{"}
+ "INVOICED" + {"}+ "& invoicedate >" 
+ "@texttotime(" + {"} +from1 + {"} +")"
+" & invoicedate <" + "@texttotime(" +{"} 
+to1  + {"}
+")"                                                     
 Set uiview = ws.CurrentView
 Set view = uiview.View
 view.SelectionFormula = formula
 
 Call ws.ViewRebuild
 
End Sub

Do you have comments on this tip? Let us know.

This tip was submitted to the SearchDomino.com tip exchange by member Mark Hughes. Please let others know how useful it is via the rating scale below. Do you have a useful Notes/Domino tip or code to share? Submit it to our monthly tip contest and you could win a prize and a spot in our Hall of Fame.

Dig Deeper on LotusScript

SearchWindowsServer

Search400

  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

  • HTML cheat sheet

    This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

  • Carol Woodbury: Security

    Carol Woodbury

SearchDataCenter

SearchContentManagement

Close