Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Powerplay Web - Export to PDF 1

Status
Not open for further replies.

rm1234

MIS
Jul 24, 2005
38
EU
In Powerplay Web, How does one make the Export to PDF option invoke in a new window?

Thanks
 
You could edit the javascript in the ppwbtoolbar.js, but this would affect every export to pdf.

To give users the choice, I have added some code to the ppwbcustom.js file so that the pdf opens in a new window. Note that you need to add this between the braces of the relevant custom button number and remember to enable that button number for the cubes and reports concerned. {check the documentation for details on custom buttons in the toolbar if you're unsure}.

Note also that there is no pop-up for the orientation - it takes the default.

Code:
ar fh = topparent.getXtabFrame().document.fhidden;
	topparent.getXtabFrame()._fhchanged = true;
		topparent.getXtabFrame()._fhtarget = fh.target;
		topparent.getXtabFrame()._fhaction = fh.action;
		topparent.getXtabFrame()._fhRA = fh.RA.value;
	{
		FTok = false;
		fh.RA.value = 2;		
		var targetWindow = self.window.parent;
		targetWindow.name = "PPESTarget";
		fh.target = "_blank";

		fh.action += "?MIME=.PDF";
		fh.CO.value = "";
		fh.submit();
	}

soi la, soi carré
 
Thanks for the piece of code.

I have added between the braces for custom button 2 but it doesnt seem to do anything. Get an 'error on the page' messsage on status bar.

I had another custom button 1 which also stopped working.

I removed the code and custom button 1 started to work.

rm1234
 
Apologies - looks like I missed a byte with the cut and paste. That'll learn me to have a brewski at lunchtime!
Put the letter v in the front of the text, so that it begins
Code:
 var fh = [code]

[i]soi la, soi carré[/i]
 
Neat java, DrLex. Have a star on me - solves an issue here!
B
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top