I have a form that has a checkbox which contains values such as Accounting, Service and Maintenance. The user is...
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
able to select one or more of these values from the list. I need to run through the values that the user has selected and add his or her name to another field on another document that corresponds to their selection.
The fields that appear on the other document are Accounting, Service and Maintenance. If the user has selected Accounting, their name is to be added to the Accounting field, and so on. The document that we are loading their name to is used for mailings corresponding to their selection. The intent is to have this information populate the document at the time the user submits the document. I would like to do this dynamically, but am not sure how I can capture all of the values and load into the correct fields. I am writing this in LotusScript.
Dim ws As New NotesUIWorkspace Dim doc As NotesDocument Set doc = ws.currentDocument.document Dim item As NotesItem Dim MyType As NotesItem Set MyType = doc.getFirstItem("MyTypes") 'MyTypes is the field with the values the user selected' Forall SelectedType In MyTypes.Values Set Item = doc.ReplaceItemValue ( SelectedType, "UserName" ) End Forall 'save the document'
Dig Deeper on LotusScript
Related Q&A from Brian Mahoney
Find out what types of calculations can be computed for a column in a Lotus Notes view and the best way to go about it with this expert response.continue reading
Find out why you can't use Formula language to include a doclink to a specific Lotus Notes view or database and need to use LotusScript instead.continue reading
Discover the reasons behind a Notes/Domino admistrator having trouble with disabled options in the "customize this view" section of his Lotus Notes ...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.