• amarie
    November 28, 2016 at 9:19 am #3169

    IBM BPM 8.5.6 – SPARK UI EE

    We have a requirement that if the single select control only has one option in the list that we automatically select the first option.  Our single select control is populated by an AJAX service.  So on the “On Service Items” event, we’ve tried to use the following logic: if(me.getItemCount() ==2) {me.setSelectedItemAt(1);}  (Since the item count is 2 if there is only 1 value – from our testing.)   But the function setSelectedItemAt() does not seem to work with any index value 0, 1, 2, etc.  Is this broken or are we using this function incorrectly?

    November 28, 2016 at 12:48 pm #3172

    This looks to be a bug… We will open a defect.




    Martin Lorenz
    June 21, 2017 at 4:19 am #4401

    When we can expect fix problem? I use SPARK version EE and bug still occours but only IE browser. Our clients still report this bug and we can do nothing.

    Martin Lorenz
    June 21, 2017 at 5:25 am #4402

    I will only add, that problem occours only when I have hidden single select control and when I e.g. choose check box which when is marked for true value, single select in displays and instead of the placeholder, on single select is select first element. I don’t know where is problem. And as I wrote earlier, the bug occours only Internet Explorer browser. In Firefox and chrome averything is good but my client use Internet explorer browser. Please solve problem ASAP. This is very important for me.

    Martin Lorenz
    July 4, 2017 at 2:39 am #4464

    Someone with spark suppert, can take up this problem or do we have report this bug official path?

    SPARK Support
    July 5, 2017 at 2:45 pm #4470

    Hi Martin,

    I was able to reproduce this issue in our test environment and have opened a bug to be fixed in our next release.

    While troubleshooting this issue, I noticed that if I placed the following statement in the Single Select’s On Load event, the issue was no longer reproducible:


    Can you try this as a work around in your scenario?  Also, can you share screenshots with the details of your configuration such as Items from Config Option, bound variable and type?


    Stephen P.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search