Focal Point
[Solved] PDF redirect for one report only

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1797059916

May 09, 2012, 01:58 PM
gregv
[Solved] PDF redirect for one report only
Hi all,
I'm looking for some insite on how to turn off redirection for PDF output for one report. All other PDF reports need the redirection but 1.
I know about IBIWF_redirect but this is a global setting. Can I reset this variable for a specific report? If so, where? Examples?

I've done some forum searching and documentation reading but to no avail...

TIA.

This message has been edited. Last edited by: gregv,



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
May 09, 2012, 02:06 PM
Tom Flynn
DHTML


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
May 09, 2012, 02:19 PM
gregv
Thanks, Tom.

I know I can get the look close to PDF using DHTML but there are differences.

The user would like PDF.

Any other ideas?

Thanks.



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
May 09, 2012, 02:25 PM
Tom Flynn
ON TABLE HOLD AS NOT_PDF FORMAT HTMTABLE or HTML or DHTML or Whatever
END
-RUN
SET HTMLFORMTYPE = PDF
-HTMLFORM BEGIN
!IBI.FIL.NOT_PDF;
-HTMLFORM END

Last Idea:

Have the user open ADOBE, EDIT, Preferences, Internet Options, Check Display PDF in Browser...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
May 09, 2012, 04:18 PM
Waz
Just a silly thought.

Can you pass IBIWF_redirect as a parameter in the call, I have no idea, but perhaps it may be picked up.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

May 10, 2012, 03:48 PM
gregv
Thanks Tom and Waz.

I tried passing IBIWF_redirect with no success.

Good idea but no joy.



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
May 11, 2012, 03:41 PM
gregv
Update: &IBIWF_redirect=NEVER works when added to the URL on the report request.



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
August 12, 2013, 09:59 AM
David Briars
Following up on this great thread..

Setting IBIWF_redirect=NEVER gave me a PDF Error: 'file is corrupt'.

I researched this, and found IB Case 81632529 dated 13-June-2012, that recommended that IBIWF_redirect=LEN.
https://techsupport.informatio...om/sps/81632529.html

With the setting to LEN, there was no longer a redirection when drilling down to a PDF report, and I didn't encounter the PDF 'file is corrupt' error.

With the redirect variable setting, my WF Stylesheet drill down code looks something like this:
...
ON TABLE PCHOLD FORMAT PDF
...
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=NAME, FOCEXEC=myfex(FILENAME=NAME APPPATHIN='&APPPATHIN' RAND='&RAND' IBIWF_redirect='LEN' ), $
ENDSTYLE  





Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster