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

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close