Saturday 29 October 2011

Reset button on OBIEE 11g Prompts

The Reset button on Dashboard prompts in 11g had kept quite a few developers guessing. Most of us thought it doesn't work !! The general expectation was that the Reset button would simply clear off any selections made in the prompt and take the user back to the defaults, pretty much what the "Clear My Customization" button does in the Page Options. However the functionality of Reset button is slidely different than Clear button.

Reset Button works in following manner:
-> if 1) the prompt is blank 2) select some value, 3) reset 4) it goes back to blank.

-> if 1) the prompt is blank 2) select some value, 3) apply 4) reset. 5) it does NOT go back to blank. actually it does not change anything. 
-> if 1) the prompt is blank 2) select some value, 3) apply 4) change any values5) reset. 6) it undo any changes done in step 4.
Many users want a button on the prompt itself that can clear off everything and take them to default values. They do not want to go to the page options always for clearing prompts. The solution is to call the function behind "Clear My Customization" action to do this.
1. Add a text box in the page
2. Add the following text and click on the Contains HTML markup box :

<div class="XUIPromptEntry minibuttonOn"><a href="#" onclick="return PersonalizationEditor.removeDefaultSelection(false)"}>Clear</a><align=left></div>



 


 
 

No comments:

Post a Comment