Search Support
-
amarieNovember 28, 2016 at 9:19 am #3169
IBM BPM 8.5.6 – SPARK UI 4.4.3.1 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?
Martin LorenzJune 21, 2017 at 4:19 am #4401Hello,
When we can expect fix problem? I use SPARK version 4.5.0.2CF EE and bug still occours but only IE browser. Our clients still report this bug and we can do nothing.Martin LorenzJune 21, 2017 at 5:25 am #4402I 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 LorenzJuly 4, 2017 at 2:39 am #4464Someone with spark suppert, can take up this problem or do we have report this bug official path?
SPARK SupportJuly 5, 2017 at 2:45 pm #4470Hi 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:
console.log(me.getSelectedIndex())
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?
Regards,
Stephen P.
-
|
You must be logged in to reply to this topic.