Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Suppress the change event when refreshing using apexrefresh event

Arijit KanrarSep 21 2020

Hello All,

I'm using Apex 5.1.3.00.05.

We have many complex screens with a lot of interactions. This level of interactions are very difficult to implement using DAs (we had tried but gave up the approach).

So now we design and implement our screens as state machines written in JS (of course using the JS functionality provided by Apex).

For this we have developed a library of JS functions to do various tasks.

One of them is a function that can reload a select list on the page and perform some tasks after the reload is complete.

It does that by triggering the apexrefresh event on the item. The post refresh tasks are performed by attaching a one time handler for the apexafterrefresh event.

This works well with a caveat -  any change event handler attached to the item also fires.

Up until now we have had to either live with this, or if necessary, unbind the change event and rebind it after during the post refresh tasks.

Nevertheless, its a less than ideal approach because its very poor at scaling up. It forces us to add housekeeping code along with business logic.

I would really appreciate if we have any available out-of-the-box method to suppress the change event temporarily?

Thanks,

Arijit

Comments
Post Details
Added on Sep 21 2020
0 comments
606 views