PDA

View Full Version : Serious ComboBox Issue


Dermot
03-07-2008, 02:24 AM
This issue has started since updating to the latest version. I have attached an example that demonstrates this serious problem.

One of the fixes in the new version is that a comboboxes On Select event now fires when you select a combobox item using the ComboBox.SetSelected() action.

In my example I have a combobox which sets the save reminder label visible in its On Select event. When the page loads it selects the first item in the combobox using ComboBox.SetSelected(). This fires the On Select event which sets the reminder label visible.

This is all fine but I don't want the save reminder label shown when the page loads, it should only show if I change the selection in the combobox. So after calling the ComboBox.SetSelected() action I hide the label. The problem is that line of code that hides the label never executes and the reminder label is not hidden.

The only way to force it to execute that line of code is to put an Application.Sleep(1) before it. Dialog.Message() also works.

I spent a long time trying to figure out what was going on. I just couldn't believe that the code was not being executed. It will execute fine if you don't have the ComboBox.SetSelected().

This is very scary that code that should be executed is not. I feel this is a very serious issue that needs to be address ASAP. At the very leaset put the combobox back the way it was so that the On Select event does not fire when you select an item using code. By the way, selecting an item in a listbox using code does not cause this problem.

Comboboxes in AMS are painfully slow. If you have a lot of comboboxes, they will slow page loads down big time. I am pretty sure that this is what is causing the problem described above. Listboxes on the other hand do not slow down page loads no matter how many are on the page. I think this is also a serious issue that I have brought up before but never got a response.

holtgrewe
03-07-2008, 12:04 PM
Dermot
This is a really stange problem.
I was actually able to change the label text prior to 'trying' to hide the label, and still couldn't hide the label. (I'm sure you tried all sorts of combinations as well)...

I agree, there needs to be a very quick fix to 7.1.1005 to remedy this.
Your work-around does of course work but, You must have confidence all the code will actually run - you start to wonder what else isn't working???

Dermot
03-07-2008, 01:19 PM
You must have confidence all the code will actually run - you start to wonder what else isn't working???
Exactly. This is very serious.

patrick6
03-09-2008, 07:49 PM
What's up with the lack of response of these things? I don't get it.

S0mbre
03-10-2008, 07:38 AM
I've an applet that has 3 pages each with 10 combos in them, so 30 combos in total, and to speed up the load I just set the application to redraw the page. Worked fine with me!

Darryl
03-10-2008, 09:42 AM
We'll be looking into this issue and should have it resolved for the next service release, some time this week.

REF: 17291