This article will provide the information to replicate the same feature in your dashboard development.
This example uses a dashboard prompt with some Oracle BI Applications sample data. The dashboard prompt has been setup to display the Fiscal Year with a default value of 2012 and Operating Unit Organization Name of Vision Operations.
If the default values of this prompt was changed the user would have to use the Page Options menu and select the Clear My Selections menu item.
It’s possible to capture this functionality into a button with the same look and feel as the Oracle BI Server buttons. Then present it alongside the dashboard prompt as shown in the image below.
This is a neat little trick that makes a dashboard much more user friendly.
To create the button enter the dashboard editor. Then add a Text object from the Dashboard Objects list.
Most modern browsers contain features for web developers or can be extended with addons to perform this functionality. Using these developer tools the look and feel of a button and the javascript function for Clear My Selections has been extracted from the source code. These two techniques have been combined to generate the following HTML code.
<span> <a on-click="return PersonalizationEditor.removeDefaultSelection(false)" href="javascript:void(null)">Clear Prompt</a> </span>
The code should be copied into the properties of the text object. Make sure to tick theContains HTML Markup checkbox!
One more unecessary click removed from our dashboards – users will be happy