Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 14 Oracle Analytics Lounge
- 213 Oracle Analytics News
- 42 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 78 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Button to print a pdf page from dashboard

Hello!
Usually, to print a PDF page from a dashboard, i use the path Options-->Print-->PDF.
I'm asking if there is the possibility to put in my dashboard pages a button (like an action) that let me print my pdf document immediately. In other words, i need a button that call the action called by the path above.
Someone can help?
Thank you!
Answers
-
Are you looking for this ->
0 -
Hi,
thanks for the answer.
Almost: in that article you need to set your prompts to aim all dashboard pages, but in my case, i need to aim only the page where the prompt is used.
Just a question: why should i remove the prompt? Can i just filter my data with the page prompt, and then print the pdf document?
0 -
Hi,
I guess you need to read, understand and then adapt the solution of the link posted by Robert.
That blog post cover a very specific need which is linked to printing in PDF without seeing the prompts in the PDF. You don't have that need, you just want to print.
So based on the blog posts you can see how they managed to print in PDF without using the default menu entry in OBIEE, just take that part of the solution without paying attention to the prompts.
As an alternative you can simply take your OBIEE page, open the developer tool extension of your browser and analyse what the default entry to print as PDF does. Then you simple do the same in your button. I didn't look in a real OBIEE, but based on the blog post linked above it seems to just be a javascript call to a function with some parameters. So look at exactly what call is done with which parameters and done.
0 -
Sorry, not had the need to try it for myself, I would follow @Gianni's advice of digest, contemplate, adapt - good advice for life in general perhaps...
0 -
Hi guys,
@Gianni Ceresa yes, i thought about is (similar at macro registrator in excel), but i don't know java or html code.
i adapt the code to my solutions and it works, thanks a lot!
Just a few things (maybe i should open another discussion?): the text of the button appears in my pdf page (as part of a section), do you know how to modify the code in order to don't print the button text?
If not, it doesn't matter, i can mask it as a title of the report page.
Thanks for the help!
0 -
That's why the blog posts was using a hidden page without the prompts
The print will include everything you have in the page, so if the button is in the page, it will be printed out.
Because the "PDF printer" isn't able to understand everything you can probably cheat a bit by using full javascript instead of direct HTML code to display the button. I'm optimistic the PDF printer embedded in OBIEE will not be smart enough to understand what it means, so you will probably not see it anymore.
0 -
ok, but i think that to apply that, i have to know javascript, and i don't XD.
I will do something about it.
Last question that i forgot in the preview answer: how can i hide the section borders from the pdf print? I use OBIEE 11.1.1.9.160419
0 -
Yes, you would need to understand the basics of javascript. Google could clearly just give you a piece of code to copy/paste, but I really believe it's safer if you stay on things you master, at least you don't add more issues trying to solve a thing with some random javascript.
Try your best with the sections properties, but I wouldn't be surprised if, in the end, the border are always there in the PDF. The PDF printer is a bit weird on some aspects, it doesn't always translate 100% exactly what you have in the page. Maybe also worth to search MOS to see if it isn't the "normal" behaviour (and maybe there is either a patch or a workaround there).
You could even try setting the borders to be white, downside is that you will see them on the webpage as white, but if the printer works fine you will have white borders on a white background PDF = invisible ...
0 -
As you thought... i still see the borders.
Thanks for the help
0