Hello,
In Lotusscript, is it possible to implement and display a dynamic array (or a dynamic table), whose first column is a checkbox that allows the user to select/unselect the associated line?
I have implemented a dynamic table (for Notes) using NotesRichTextItem and NotesRichTextParagraphStyle (via RtItem.AppendTable(rows, cols,6000,tableColStyles) )
But I do not know how to integrate a column with a checkbox (or with another component that easily allows the user to select or unselect the line).
Thanks a lot for your time and support,
Mikaël Donini,
Arkadin, Montpellier, France
Subject: RE: lotusscript, arrays and checkbox’ columns
The blog entry Dynamic table on a Notes form shows one way to create a varying-length table that the user can edit in, sort of. The checkbox thing is a little trickier. You may note that the example uses HTML and includes a button done in JavaScript. I don’t know how to do exactly what you ask, but if you start with this and experiment around you might be able to come up with something. It probably won’t work to use a field; you might be able to import it but I don’t know whether you could read its value (if you could, it would only be with JavaScript). You might consider something more like a clickable image with a picture of a checkmark or not, that toggles. Do keep accessibility in mind, however.
Alternatively, you could create a form that contains the maximum number of rows you want to allow, with a field in every cell. This could get tiresome quickly, however, keeping your formulas in sync, and performance is a concern, and what happens if you need more rows than your programmed maximum?
Another choice that might work for you is to use one checkbox field with a constant-width font, and just make the table rows be your choices (you might have to do a little truncation to make them line up).