Search DominoPower's 11,443 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
PROGRAMMING POWER
Dynamic view filtering in Notes
By Mick Moignard

There's been one question that has been asked over and over again by Notes developers: "How can I parameterise a Notes view selection?" The answer was always "You can't" because it is the server that maintains the view, and at the time the server does the view, there's no opportunity to customise a view for one particular user.

But, actually, since Notes 6 you can customise view selections at the point of display. There are two ways to do this, both of which are reliant, basically, on being able to categorise the view in question.

Embedded views
The first approach is to use a single category in an embedded view. This one works both in the Notes client and on the Web.

I used an embedded view on a project for a customer a bit back. The application here was quite simple; we extracted some data about software installed on each PC from a Tivoli database, making one Notes document for each machine. We could also have created one document per software item per machine, but we didn't. We added the computer owner's name to each document, because some people had more than one computer. We then compared the software items and versions reported by Tivoli against the company's approved software list, and marked items as to whether they were approved or not.

There were views in the database that enabled administrators to see all the data, but what we wanted to do was be able to show each user just what was recorded for them, and to do that, we used a single-category embedded view.

We first created a view categorised by the computer owner's name. How you generate that category column is up to you. In our case, it was the field containing the person's name, but so long as you get a category value, how you do it is up to you. All the single-category check does is match against the final category value. Figure A shows you the view when opened directly in a Notes client. You can see that it is categorised by the user name.

FIGURE A


You can see the view categorised by user name. Roll over picture for a larger image.

Next, we need to embed this view onto a form or page. Figure B shows this view embedded into a page.

FIGURE B


Next, embed the view onto a form or page. Roll over picture for a larger image.

At the top of the page is a computed text field that displays the current user name. Look at the Designer's Objects/Reference pane in the middle bottom of the screenshot. You can see, at the end of the list, the embedded view program events, and "Show Single Category" is highlighted.


1  ·  2  ·  3  ·  4  ·  Next »
Other articles you might like
Home > Lotus Technologies > Notes (84 articles)
   A walk down Memory Lane with Lotus Notes
   An application for scanning physical mail and distributing it virtually
   Managing Notes deployments with Teamstudio Build Manager
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Syncing Notes with Android phones
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Online safety for virtual learning
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Seek and find: Strategies to locate filed-away emails fast
-- 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 --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


Learn more at www.integra4notes.com.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login