Setting predefined items into the listbox works fine,
but I need to put unkown data into it from lotus script.
I'm using Lotus Notes 4.1
Thanks for any help
Ernad
Email: er...@octagon.ie
> I'm trying to fill the Listbox field from lotus script.
> The method FieldSetText only works for the ordinary text field.
Are you shure? Have you tried to put the choices as a list/array?
here is how I usually do it. The easiest way may be to create a hidden multivalue textfield of your form and to use an
ordinary array of strings in LS. Then you can assign this list to the hidden field using the values property if the
NotesItem class. The visible keyword-field then should use the name of the hidden textfield as the selection-formula. Be
sure the option "Refresh choices on document refresh" is on. The script should look something like his:
Dim Values (1 to 3) as String
Dim ListItem as NotesItem 'hidden textlist
... set value of UIDoc
Set doc = UIDoc.document
Set ListItem = doc.getfirstitem ("[HiddenFieldName]")
Values (1) = "aaa"
Values (2) = "bbb"
Values (3) = "ccc"
ListItem.values = Values
call UIDoc.Refresh
I didn't try it, but should run, HTH.
Marius.
On 15 Oct 1997 11:38:09 GMT, "Ernad Mulaomerovic" <er...@octagon.ie> wrote:
>I'm trying to fill the Listbox field from lotus script.
>The method FieldSetText only works for the ordinary text field.
>I tried to use ReplaceItemValue and it doesn't work with keyword field.
>
>Setting predefined items into the listbox works fine,
>but I need to put unkown data into it from lotus script.
>
>I'm using Lotus Notes 4.1
>
>Thanks for any help
>
>Ernad
>
>Email: er...@octagon.ie
>
---------------------------------------------------------------------
Marius Neumann
University of Paderborn, Germany
Mail: Marius_...@notes.uni-paderborn.de
Web: http://pbhrzs0.uni-paderborn.de/~e99878
I do anything for money!
---------------------------------------------------------------------
I didn't find the option "Refresh choices on document refresh" anywhere.
There are only two Keyword options in Keyword Properties:
Interface:
Checkbox
Radio button
Listbox
Combobox
[ ] Refresh fields on keyword change
The reason why it doesn't work is maybe that I have Notes 4.1
Even I found that I cannot change the contents of the Keyword field.
Thanks anyway
Ernad