Search DominoPower's 11,323 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
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Five trends for 2010
DominoPower TV Episode 1: Inside a strategy session with Teamstudio
More about Domino log files
Say goodbye to the Uh-Ohs. Long live the Tens.
Why your log.nsf might not be purging properly
Latest Lotus Headlines
Recommended Maintenance - Lotus Notes Traveler
Here are the slides and other materials from our Lotusphere session
Microsoft OCS awareness in Lotus Connections and Websphere Portal?
SnTT: XPages Blank Calendar Control (Part 2), adding data
Have your Lotus Notes calendar display multiple time zones
Sample Database for Microsoft Office and Lotus Symphony Integration
Symphony 3.0 beta signals another attack on Office
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad: Apple's latest heartbreaker
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Running auto-respond rules when Outlook is closed
-- 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 --

Teamstudio announces the 2010 spotlight awards winners!
We had some extraordinary submissions for the 3rd annual Teamstudio Spotlight Awards, and choosing the winners was no easy task for our judges! Click here to find out who won, and to learn more about these remarkable applications and the genius developers behind them!

Tap here for more information.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login