Quantcast
Channel: Grassroots Oracle
Viewing all articles
Browse latest Browse all 405

Hide region if no data found

$
0
0
I have a diagnostic page where I hide regions that aren't relevant - ie, have no data returned.

Here I create a dynamic action that executes After Refresh of the relevant region.

Dynamic Action definition

The client-side condition evaluates the presence of the .nodatafound class within the region, which is present only when no records are returned.

Inspect element of region with no records

The dynamic action then shows/hides the region, depending on the result of that JavaScript expression.


Instead of the region itself, this could relate to other components only relevant when records are returned.

Simples.

Viewing all articles
Browse latest Browse all 405

Trending Articles