While developing standard reports in APEX I usually do the following repetitive steps. Modify something to do with the report (query, setting, attributes, source data, etc). After saving or committing my changes I refresh the page to see how it looks. This gets frustrating when doing a lot of small edits as a full page refresh is not required.
I recently created a script to solve this problem. The script adds a small refresh icon in the first column header of each standard report. Clicking it will refresh the current report. The following demo shows it in action and how you don’t need a full page refresh to view changes to a report: (note: you don’t need to run this in the console, which will be discussed at the end of the post)
The following steps outline how to integrate this directly in your application:
- On Page 0, create a new Dynamic Action (DA)
When > Event: Page Load
var buttonHtml = '<span aria-hidden="true" class="apex-dev-refresh fa fa-refresh fa-anim-spin"></span>';
The DA should look like this:
You can change the icon and its settings to anything you want (i.e. by modifying the
buttonHtml). You can use the APEX Icon Generator tool to generate the code for a new icon.