Populating Checkboxes

Hi All,

I’m trying to manipulate checkboxes from lotus script for the first time…First of all I couldn’t find anything about them in documentation…am I too stupid or is there really nothing?

First Question: Are there any small examples on how to handle checkboxes in ls?

Second: I am trying to populate a checkbox dynamically. As I couldn’t get this to work (the choices wouldn’t show up, thou the value was set when my code was running as I could see in the debugger - I use doc.ReplaceItemValue to set the choices) I set to use a formula to display the choices and got them from a second field. This works well, I can set multiple values into the helper-field and all choices show in the checkbox. My problem here: all choices are selected! As I am doing an election-app this is rather suggestive and not really wanted…

Thanks a lot for any help!

Adrian

Subject: Populating Checkboxes

Two things:

  1. Checkboxes are just fields. You manipulate the field in the NotesDocument or NotesUIDocument objects, that’s all. No checkbox-specific stuff required.

  2. Changing stuff in the (back-end) NotesDocument is all well and good, but you won’t see these changes mirrored in the NotesUIDocument (front-end) unless you reload it. I’m assuming that’s what you mean by saying that the changes aren’t visible.