Page 1 of 1

Order of ComboBox::click vs ComboBox::closeUp event delivery

Posted: Fri Mar 25, 2011 1:21 pm
by BeeJay
One of our developers had written code that inadvertently relied on the incorrect delivery order of the ComboBox::click versus ComboBox::closeUp events. The documented order for delivery of these events has always been as follows:

Frm::comboBox1_click
Frm::comboBox1_closeup

However, prior to the Jade 6.3.08 release there was some code developed in our system that relied on the incorrect delivery order, that being:

Frm::comboBox1_closeup
Frm::comboBox1_click

The code in question has now been fixed, but I thought I'd let you all know in case there were any other systems out there that may be affected by relying on the previous incorrect delivery order of the events. It's unlikely, as the code in question wasn't particularly elegant code anyway and the rewritten version is much better anyway.... as is often the case with rewritten code... ;)

Cheers,
BeeJay.

Re: Order of ComboBox::click vs ComboBox::closeUp event deli

Posted: Tue Apr 12, 2011 9:07 am
by johnbaird
yes was subtle! - rendered our systems 90% unusable. the code we had written was 12 years old and on a base form that many others inherit from. the code relied on how jade worked not how it was documented. took a while to figure out what went wrong after all that time, but being OO only needed a few lines of code to sort