hi!
i have a checkbox with choices i want to programatically set some values in script only notesuidocument. how do i do that?
sugessions…
hi!
i have a checkbox with choices i want to programatically set some values in script only notesuidocument. how do i do that?
sugessions…
Subject: setting a check box using script (notesuidocument)
You have a checkbox field called test1, that has the list of values you want. One of the list items is called “myvalue”.
Use this…
Call myUIDoc.FieldSetText(“test1”, “myvalue”)
alias work as well
Subject: RE: setting a check box using script (notesuidocument)
thanks fot sugg. but with that code only one of the options can be set ! I need to set more than one values to an option button.
Subject: RE: setting a check box using script (notesuidocument)
Ok, try this …
From my last post …
++++++++++++++++++++++++++++
You have a checkbox field called test1, that has the list of values you want. One of the list items is called “myvalue”.
Use this…
Call myUIDoc.FieldSetText(“test1”, “myvalue”)
alias work as well
++++++++++++++++++++++++++++
Do this…
Dim w As New NotesUIWorkspace
Dim myUIDoc As NotesUIDocument
Dim myDoc As NotesDocument
Set myUIDoc = w.CurrentDocument
Set myDoc = myUIDoc.Document
Dim test(2) As String
test(0) = "value1"
test(1) = "value2"
etc..
myDoc.test1 = test
Call myUIDoc.Refresh
Call myUIDoc.Save