Search DominoPower's 11,441 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
Expanding and collapsing response document rows with Domino and Internet Explorer
By Andrew Stuart

When I first started Lotus Notes programming in 1991, I found that one of the most exciting and useful features in the Lotus Notes Client was the ability to have expanding and collapsing response document rows in Views. Expanding and collapsing response document rows allows the end user to browse core information, while still being able to drill down into any View row for more detailed information. The detailed information remains hidden from your end user until it's needed, making for a much cleaner and less cluttered view.

Implementing expanding and collapsing response document rows is trivially easy in Lotus Notes. The applications for expanding and collapsing response document rows were unlimited and pretty much every Lotus Notes application that I wrote included this functionality. Expanding and collapsing response document rows allowed me to keep my user interface clean and simple at the top level and yet still give the user access to further detail on demand. This is powerful and intuitive stuff.

The world changes however, and when the Web came along I stopped doing Lotus Notes client development entirely and switched to the Web browser as the client for all my software. I stuck with Lotus Domino as the server but left the Notes Client behind. Sadly, abandoning the Notes Client also meant abandoning some of the Notes Client's more powerful features, including expanding and collapsing response document rows in Views.

Lotus has implemented a kind of workaround for collapsing and expanding categories on the Web, in which you can click on little blue triangles in the Web browser, triggering a query to the Domino server which returns a page with the appropriate row expanded out. I never liked this functionality much however. I didn't like the look of the views, and I didn't like the fact that the browser had to go and do a round trip to the Web server to get a new page just to expand a row out. I really didn't like the goofy little blue triangles either--you know the ones I mean.

Fast-forward to 2001, and I had a new Lotus Domino application to build, for which I wanted expanding and collapsing response document rows. I wanted them in a Web browser. I wanted them without a round trip to the Domino Web server. I wanted them without hokey little blue arrows. I wanted them to be fast. I wanted them to look cool. I wanted to provide a "show/hide all" option that would expand or collapse all rows. Didn't want much, did I?

The key to the puzzle
The key to expanding and collapsing response document rows is the fact that Internet Explorer is able to hide or display any HTML page element using the Cascading Style Sheets "display" property. To hide an HTML page element, you must first identify the HTML page element with an ID attribute and add a style sheet to your HTML page. The style sheet must include a "display" rule for the HTML element referred to by the ID. The word "block" means show, and "none" means hide. Here's a simple example:


1  ·  2  ·  3  ·  Next »
Other articles you might like
Home > Lotus Technologies > Application Development (48 articles)
   An application for scanning physical mail and distributing it virtually
   How hide-whens in Rich Text can ruin your whole day (and what to do about it)
   Little known traps about Lotus Notes fields
Home > Internet Technologies > HTML and CSS (15 articles)
   Using a reusable code approach to HTML select option lists
   One reader's opinion on HTML mailing
   Keep lookin' good with Cascading Style Sheets
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
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
2010: A Lotusphere of change
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: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- 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