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.
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.