Saturday, August 9, 2008

OBIEE making a clear button

Found this piece of javascript in the new 10.3.4.0 version Sales example:
It clears all the user prompts edits and sets them back to their defaults.

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

Till Next Time

13 comments:

atik9 said...

How do you access the page to enter the JavaScript shown here? Is that part of the dashboard prompt? Thanks.

John Minkjan said...

You drag in a TEXT section on a dashboard page

Matt said...

Do you know of a way to make that button appear right next to the Go button, in the prompt?

John Minkjan said...

You could add your to the XUIPromptEntry class in the common.css

regards

Thomas said...

the code does not work for me, nevertheless, the following code works enven if the button is incorrectly placed :

{td class="XUIPromptEntry"}{span class="minibuttonOn"{}a href="#" onclick="return PersonalizationEditor.removeDefaultSelection(false);"}Clear{/a}{/span}


Thanks for the idea, this was quite painful white contrained cascading prompts

coolrohit85 said...

Hello All

Actually i tried out both the javascripts which u gave but cnt find any of them working....
I pulled in a section and pulled in HTML section in that. In that i wrote the javascripts which u guys mentioed at the top. But its nt working. Kindlty tell the complete process??

John Minkjan said...

HTML copy paste can sometimes srew up the code. Open your samples sales dashboard in view source mode. Cut the code from there.

regards

sreekanth said...

This Clear button is working for one Prompt, I have 3 Cascading prompts in my Dashboard propmt and is there any way of clearing all the prompts with one clear button

John Minkjan said...

@sreekanth,

Maybe you can write your own JS. Please share if you find a solution.

regards

John

Anonymous said...

Can this be used to clear calendar prompts that have are defaulted using a Server Variable? Currently, when the button is clicked they are not cleared, they just stay as the server defaults.

Priya said...

John,

you advised to add the add the script in common.css to place the clear button next to GO button. Can you please tell this in detail?
Where should we place the clear button javascript?

OBIConsultant said...

Hi John,


You advised to add the script in common.css to place the clear button next to GO button. Can you please tell this in detail?
Where should we place the clear button javascript? As this is a Critical req for me in my Project.

Can somebody help on this.

Regards
Naga Swapna

John Minkjan said...

@Naga Swapna,

You can't put JavaScript in a CSS file.

Just add a static text box to your page and put the javascript in there.

regards