Entering new values into an Xpages Combobox

On February 15, 2011, in Uncategorized, by Mark Hughes

This is actually very simple to do.

Step 1.  Create a standard combobox on an xpage.

Step 2.  Create values for that combobox.

Step 3.  On the dojo property panel set the dojotype to dijit.form.ComboBox.

Now you are finished, you will have drop down capabilities as well as type ahead and you can type in a new value as well.

Have fun.

 

12 Responses to Entering new values into an Xpages Combobox

  1. […] This post was mentioned on Twitter by xpagesinfo, Paul Hannan. Paul Hannan said: RT @planetlotus Mark Hughes: Entering new values into an Xpages Combobox http://planetlotus.org/832936 […]

  2. Bas van Gestel says:

    Dear Mark,

    I tried the above but, when entering a value that is not in my Values list, the value is not saved to the field on the Notes Document.

    Any ideas?

    Many thanks in advance,
    Bas

  3. Dave Ott says:

    This won’t work for me. I follow the simple steps above and I am unable to type in the Combo Box to add a new value. Can you be more specific in how this is to be implemented. Thanks

  4. Sabina says:

    using 8.5.2 and this doesn’t work. Can’t type in a value – only select options – same as Dave Ott

  5. lily gossip says:

    Your Entering new values into an Xpages Combobox is Very useful and meaning post,The detail information and the photos help me think of a lot .

  6. chris boote says:

    Doesn’t work in 8.5.3 either

  7. Gary Wood says:

    To make this work, you should also do what they describe in example 1 of the article Client Side JavaScript Libraries in XPages. You just have to do the first 4 steps and some things have changed places from version to version.

  8. Gary Wood says:

    Just to be clear …

    Do steps 1-3 as outlined above. Then, on your ComboBox go to All Properties -> dojo -> dojoType and enter dijit.form.ComboBox. In my case I was doing a custom control so I went to the top level custom control properties and set dojoTheme and dojoParseOnLoad to true (those are also found at All Properties -> dojo ).

  9. Sabina says:

    I get the dijit working, but it will not accept a value not in the list. I can type it in , but save doesn’t work .

  10. srieger says:

    I am able to add values to the combo box but can not get it to save. In fact my document used to save just fine until I added the dojo code. Now it doesn’t save at all.

    HELP!

  11. just stopped by to learn about this website. It is really informative and I enjoyed browsing it,
    thank you for the helpful article!

Leave a Reply

Your email address will not be published. Required fields are marked *