Get A Birdseye View of an APEX App
Posted on June 6th, 2017
Over the years, one of the age old problems when speaking to users of applications, is that they can’t get to information they need quickly. There could be a range of reasons for this, badly designed flow, missing information or just simply too much scrolling on the screen - the latter being the reason for this post.
The enhancements in APEX 5 and 5.1 have made a massive difference to how we build APEX apps, also the likes of Regional Display Selectors, and collapsable regions are great features. These allow regions to be displayed in a different way based on user action. Even though, we still get queries like “I still want to see everything though!" - this is obviously subject to performance etc.
So looking about for potential solutions, I came across Birdview.js.
This library is pretty new, less than a couple of weeks old, but took the opportunity of seeing how easily it could be embedded into APEX. Answer: very easy.
Check out the demo here (username = demo password = demo):
The test case is pretty simple, this is the standard Sample Database Application, and page 5 has been updated to include all the charts on a single page. As with the plugin site, press the “Z" button. This will show the overview, you are then able to click anywhere on the overview and the screen will scroll to that section. Pretty neat.
To install, follow the instructions below:
- Download the css and js files from here: http://achrafkassioui.com/birdview/js/birdview.js and http://achrafkassioui.com/birdview/css/birdview.css
- In your APEX application, load as Static Files (or wherever you store your reference files)
- Reference Files in User Interface Defaults:
- On Page 0, create a "Page Load" Dynamic Action with the following settings:
- True Action:
That should be all you need to do, every page that needs to scroll with have the option by pressing the “Z" on the keyboard
You can also pass in the button parameter into the init command, which will hide the icon at the top right of the screen, for example:
This has been tested in Apex 5.1 at this stage, but will look at 5.0 and look under the hood a bit more in the near future to see if there is anything else of interest and post back here.
This has been tested on Safari and Chrome on Mac and IE11 on Windows 7. Also tested on iPhone, the pinch / zoom works well.
Any questions or ideas, please get in touch via my twitter
(on a side note - it’s been a while since my last post - not the weekly updates I hoped, but I’ve got a couple of blogs saved and ready to publish - honest!)