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.
Expanding and collapsing response document rows with Domino and Internet Explorer (continued)

Save and close the view.

Create a form
Create a new form and name it "myform". Enter the following into the form and embed the view where indicated:

<style type="text/css">
#mytable {display: block;}
#myrow {display: block;}
</style>

<table id='mytable'>
EMBED THE VIEW 'myview' HERE
</table>
<noscript>

Right click on the embedded view and select "embedded view". Ensure that "display" is set to "Using HTML". Then select the entire contents of the form and select "Text" and "Pass thru HTML".

In the form properties, ensure that "Treat document contents as HTML" is off.

Save and close the form.

Testing our Lotus Domino example
Lets now test the Lotus Domino example that we just created. Using Internet Explorer, type in the URL to the form that we have just created:

http://xxx.xxx.xxx.xxx/databasename.nsf/myform?openform

You should then see the following repeating for each document in the view/database:

this is a table row
this is a table row
this is a table row
this is a table row

Notice that all table rows are displayed because their CSS display property is set to "block". You can hide all table rows by changing the CSS display property from #myrow {display: block;} to #myrow {display: none;}.

Okay, so we've illustrated the technique in Domino, but it's not so interesting because it just shows or hides all rows in the table. It doesn't allow control over individual rows. In my next article, we'll get fancy, adding response documents to our view and preparing to selectively show or hide all the responses for any row. Stay tuned!

Easy, flexible article reprints
ZATZ now offers a quick, easy, flexible and inexpensive way to use article reprints in your marketing and promotion efforts. You can now get article reprints for a one-time fee of only $200. For details, visit http://mediakit.zatz.com/reprints.

Andrew Stuart is a software designer, consultant and Lotus Domino programmer and has been working with computers for 16 years. Andrew is Managing Director of Touchdown Systems Design in Melbourne Australia at http://www.touchdown.com.au. He can be reached at astuart@mira.net.


« Previous  ·  1  ·  2  ·  3
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 --

Mark your calendar for in-depth Lotus training, May 12-14, Boston
Join experts and peers May 12-14 in Boston for educational and networking events that deliver real-world Lotus training so you can increase productivity and efficiency in your company, advance your skills, and squeeze the most from your current environment. One registration gets you into THE VIEW's Admin2010 and Lotus Developer2010.

Register by April 10 to save $200.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login