Ask the Expert

Create dynamic table in Domino Designer 6

My platform is Domino Designer 6. I want to create a dynamic table so that a user can insert or remove lines. This table can make sum of column or rows.
This can only be done with a good dose of LotusScript. You could provide buttons or links for users to add or remove lines in the table and then use code to add up values in columns or rows and display the totals.

It's not exactly a simple process, but with the help of the examples in the Domino Designer Help database, you can use the new NotesRichTextTable and NotesRichTextNavigator classes to add and modify the rich text table and the data in the table.

It is important to note that changes to rich text fields are not available until the document is saved, closed and re-opened. You can do all of this in your script (provided that the script is in an agent and not embedded directly on the form) and it should be fast enough that the user can't even tell what happened.


Do you have comments on this Ask the Expert question and response? Let us know.

This was first published in September 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: