Skip to Main Content
Feature Request FR-2088
Product Area Application Builder
Status DELIVERED

1 Voters

Declarative way to refresh facet region

trent Internal
· Oct 18 2021

Idea Summary
I'd like to be able to refresh my facet region in a declarative way. 

Use Case
I have a normal page which has a classic report and facet region. I have a button that changes that shape of my data. After the processing, I refresh my classic report to reflect the new data. My facet region now shows incorrect counts.

Preferred Solution (Optional)
I know I can implement this in JavaScript by way of:
- apex.region("facet-region").refresh(); (21.2)

I'd like to be able to specify this within a “Refresh” true action

(or, if refreshing my classic report detected it is bound to a facet and refreshed in the same time)

This has been delivered in Oracle APEX 21.2!

Comments

Comments

  • john.snyders APEX Team OP 3.9 years ago

    This is delivered in 21.2. The refresh method on the now documented facetsRegion and also the native DA Refresh action will refresh the faceted search region. In previous releases you needed to use the fetchCounts method.

    Just refreshing the report will not refresh the facets because the notification direction goes the other way only. Facets notify reports to change. Reports don't notify facets. One reason for this is because reports change for other reasons such as sort order that don't affect facets.

  • john.snyders APEX Team OP 3.9 years ago

    And I should also note that the same works for the new smart filters region.

  • trent OP 3.9 years ago

    Thanks John - I had tested, but I've just realised my test wasn't working because of the order of events - I had the refresh facet region after refresh classic report, but after I inverse those orders all is working. I just reviewed my test case and saw my mistake.