How can i add information coming from a dialog box (a window) to a dialog list field in the main document? I would apreciate any help.
Subject: Add elements to dialog list dinamically
This is really easy.
If you mean to fill in the actual field values, just name the field in the dialog form the same name as in the main form.
If you mean to add to the list of choices, then make the list field pull its choices from a hidden field on the main form, and use your dialog box to set the content of that hidden field (by naming the field in the dialog form the same thing).
Subject: RE: Add elements to dialog list dinamically
Ok i understood but how can i realize that if i press ok on the dialog box that the values are added to the hidden field, (hidden field must be a list?) so when i enter another name this one is added to the filed …what i dont understand is how to tell lotus to add the name. replacing by the way works :(.
Subject: RE: Add elements to dialog list dinamically
So your question is actually how to create a dialog list field with the option to enter choices not in list where all new entries automatically become added to the list of choices for the next user in the next document?
This is a common question when learning Notes development, and there are several solutions. My generally-preferred technique is the one used for the Category field in the discussion template (you can learn a lot of basic delvelopment from that template: response forma, inheritance, hierarchical views, profile docs, etc.):
-
Create a View that categorizes by the dialog list field.
-
The field pulls its choices from the first column of that view using @dbcolumn.
If you don’t need the categorized view visible to users, you can always make it hidden. And if you expect to see new choices immediately (in the same client session) then you’ll need to disable the default caching of @dbcolumn.
Subject: RE: Add elements to dialog list dinamically
Thank you very much, I will take a look at this example.If i still have questions than i know where to ask ![]()
Greetings Kay