Search DominoPower's 11,320 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
Adding response documents to your expanding and collapsing response document rows
By Andrew Stuart

In my previous article at http://www.dominopower.com/issues/issue200112/expand1201001.html I discussed how 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, and I wanted them to look cool. Finally, I wanted to provide a "show/hide all" option that would expand or collapse all rows. If you haven't already read it, you should do so before continuing on here.

For everyone else, we're going to continue with the project by getting a little more fancy. In this article, we'll add response documents to our view and prepare to selectively show or hide all the responses for any row.

More theory
Okay, we've now got the basic principles in place for hiding and displaying table rows.

In order to selectively show and hide rows, we need some sort of identifier to link the parent documents and the child documents. They have to have something in common. The ideal common identifier is the Lotus Domino parent UNID, which is the same across the parent document and the response documents. We'll use the parent UNID as the HTML ID attribute for each response document row in the table. In the parent row we'll include a call to a JavaScript function, with the parent document's UNID being passed as a parameter. The JavaScript function will do the job of hiding or showing the appropriate response document rows. Are you with me so far?

Adding response documents and preparing for selective showing and hiding
We'll now include response documents in the view and begin to set up the mechanisms for selectively showing and hiding all those responses associated with any given parent row.

In the view properties, ensure that "show response documents in a hierarchy" is on.

Clear the formula in the first column of the view. In the column properties for the first column, ensure that "Show responses only" is on. Now place the following formula in the first column:

@If(@IsResponseDoc;"<tr id=" + @Text($ref) + "><td></td><td><B>This is a response document</td><tr>" + @NewLine;"")

Add a second column to the view. In the second column add the following code:

@NewLine + "<tr colspan=2><td width=1>" +
@DocChildren("<!--";"") +
@NewLine + "<img src=\'http://www.touchdown.com.au/plus.gif\' onclick=\"ShowComments(\'" + @Text(@DocumentUniqueID) + "\')\"; border=0 alt=\'Show/Hide Comments\' >" +
@DocChildren("-->";"") + "</td>" + @NewLine + "<td>This is a main document</td>" +
@NewLine


1  ·  2  ·  3  ·  Next »
Other articles you might like
Home > Lotus Technologies > LotusScript (64 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   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
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
Enabling DAOS on a database - new recommendation
Need your opinion on some new policy settings for Mail
Sometimes IBM Lotus Domino HTTP RPC Agents aren't the answer...
>> 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 --

Power Tools 6.0 is a set of 90 administrative utilities for Lotus Notes & Domino
Power Tools simplifies management of the Notes/Domino environment by automating routine tasks. Power Tools can manage or monitor mail files, groups, ACLs, agents, LOG.NSF, templates and more.

Download a trial version from helpsoft.com.
-- 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