Unhiding table rows by clicking button

I have a table that I want to unhide rows as users click a button. I have 20 rows in a table, and I only want the users to see them as they fill them out. If they need another row, they can click the ‘ADD ROW’ button, and another row appears. I thought about using hidden fields and hide-when statements that check against those fields, but I’m lost. Any ideas out there?

Subject: See TableWalker in the Sandbox

http://www-10.lotus.com/ldd/sandbox.nsf/ecc552f1ab6e46e4852568a90055c4cd/f2acda4419a5e3cd00256c0e00314e05?OpenDocument&Highlight=0,table

Subject: Unhiding table rows by clicking button

I’ve done this on various forms. I hide a numeric field (i.e. rowno), computed when composed, on the form that has an formula of 1. Each line of my table has a hide-when formula of “rowno < x” where “x” is the current row number. For instance, the hide formula for cells in row 3 wold be “rowno < 3”.

The “Add” button formula is:

FIELD rowno := rowno + 1;

@Command([RefreshHideFormulas])

I’ve used the same technique for Next/Previous buttons to give a form a Wizard look and step users through various phases of filling out the form.