|
|
|
|
|
|
|
|
|
|
|
|
|
|
PROGRAMMING POWER
Creating dynamic reports for the Notes client that go beyond embedded views
By Kim Reddington
Have you ever come across an application in which you need to create reports where your users are interested in searching on many different search criteria, but they don't want to sort through a slew of data or views? Generally, users are just too busy to sort through data that is not pertinent to their current reporting needs. They need specific data now, and they only want to see documents important to them.
On top of it all, the data they need to see may change each time they request a report. Also, limiting the number of views within your database is something you should be taking into consideration to keep the database running at top speed, as well as making the user navigation more efficient. This article will walk you through some steps and some code to help you address these issues.
Let's get started This article assumes a good working understanding of navigators, framesets, embedded views and experience with LotusScript. If your knowledge in these areas is limited, but you still wish to read on, then feel free. Try starting on a small report, working through the steps slowly, and referring to the Lotus Notes help documentation often.
The first step is to create a Notes Page or a Navigator. In my example, I chose to use a Page, which contains an Embedded Outline. The Outline consists of entries that point to different forms for each report type. In this example, I have a "Basic Report" and a "Totals Report." See Figure A to see my Page.
FIGURE A
 
Here is a sample Page containing the list of Reports. Roll over picture for a larger image.
The user's interface The second step is to create a Form for each Report button that you created in the outline. Let's talk about the "Basic Report." See Figure B to see a sample "Basic Report" Form.
FIGURE B
 
Here is my "Basic Report" form in design mode. Roll over picture for a larger image.
At the top of the Form is a table containing the search criteria fields. In this example, the users would like the ability to view data based on the Status, Department, and a date range. The range will be selected as either Monthly, Quarterly, or by specific dates.
Below the criteria table are the user's action buttons. The main button is the "Run Report" button, which will contain an agent that runs the report. Your user should only see this button before your agent has run. You will be creating the agent in a little while. The second row of buttons (Refresh, Export, Print, and any other actions your users will need), will display after your agent has run. I'll talk about the "Run Report" and "Refresh" buttons again shortly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Advertisement --
Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.
The many included activities and demos will make you a pro! Expert instructor help is a click away.
Click here to try a FREE demo course!! |
-- Advertisement --
Teamstudio Edition 25 has shipped
It's finally here! Now that Teamstudio Edition 25 has shipped, listen to our latest Tool Time audio program to find out what's changed. Updates to all your favorite Teamstudio tools will be discussed.
Plus, you'll get an introduction to Teamstudio Undo (formerly known as Teamstudio Snapper).
Tap here to get started! |
|
|
|
|
|
|
|
|
|
|