Populating the combo box dynamically

Populating the combo box dynamically

How do I populate the combo box dynamically using Lotus script?

    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.

    By submitting your registration information to SearchDomino.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchDomino.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

If you're using a combo box in a workspace.Prompt() method, it's just one of the parameters - just pass in a string array (I think a variant works, too). If you are talking about a combo box on the form, it's a tiny bit more complicated, but not much. All you need to do is have a "helper" field, a multi-value text field, which the combo box's property to get elements is computed to equal, and then use your lotusscript code to populate that text field with a list of string values. You can then hide the helper field so no one sees it. Hope this helps!

This was first published in August 2002