Forum Stats

  • 3,875,416 Users
  • 2,266,914 Discussions
  • 7,912,203 Comments

Discussions

JS code to refresh many regions with server-side condition

A_ce1
A_ce1 Member Posts: 12 Green Ribbon

Hi,

I have multiple regions on a page that I would like to refresh in one JS code. I used the following code: apex.region("XYZ").refresh();

There are over 20 regions on the page that I want to refresh, regions have a server-side condition that determines whether they are displayed or not. When I execute apex.region("XYZ").refresh(); on a region that is not visible via the server-side condition I get an error:

Cannot read properties of null (reading 'refresh')

Is there any way to solve this?

Best Answers

Answers