Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Redirection Settings - New Question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved] Redirection Settings - New Question
 Login/Join
 
Guru
posted
I am trying to include an &VAR into the name when redirecting an Excel report, but it appears to not work as I would expect.

I wanted to include current time after Daily Sales, but when I do this it comes up as a .zip and not the name of the program.

Has anyone else done this before?

Thanks

  ON TABLE PCHOLD AS 'Daily Sales &CHKTIME' FORMAT &WFFMT &CMPDRPT1 

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


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Expert
posted Hide Post
In this case try .EVAL:

ON TABLE PCHOLD AS 'Daily Sales &CHKTIME.EVAL' FORMAT &WFFMT &CMPDRPT1 
I would have characters like / and : in the name.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
I tried the .EVAL as well, no luck. I was going to use underscores between the text to prevent % where the spaces are.


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Expert
posted Hide Post
I dug around in my archive and found this, where &CONTRACTNAME is one word:

ON TABLE PCHOLD AS 'rates within canada - &CONTRACTNAME' FORMAT &WFFMT OPEN NOBREAK

This worked for me in the past.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
Thanks Francis -

Looks like it doesn't care for the . or : in there. It works fine in HTML but going to Excel, it does not like.

I was able to get it to work like this.

-SET &HR = EDIT (15.31.16,'99$$$$$$');
-SET &MM = EDIT (15.31.16,'$$$99$$$');
-SET &SS = EDIT (15.31.16,'$$$$$$99');
-SET &Time = 15 | '_' | 31 | '_' | 16 ;
-* ON TABLE PCHOLD AS FORMAT &WFFMT &CMPDRPT1
ON TABLE PCHOLD AS 'Daily_Sales 15_31_16' FORMAT HTML  


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Expert
posted Hide Post
This has something to do with Redirection settings.

For .xmh, I set Save Report to Yes. In v7.7.05. Should be similar for 8.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
I only set XLSX to yes in there, should I set the other formats?


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Expert
posted Hide Post
My Excel test was with EXL2K, which generates XMH files, so that's the one I set. Give it a try if you're using EXL2K. It seems EXL07 generates XLSX files, so I assume the redirection would be for XLSX.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
Well they had me scrap the time portion of this and only include the report name.

I guess I am good now.

Thanks!


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Guru
posted Hide Post
Nevermind!!!!

I see the error in my ways. I have space in the string. DUH!


Any suggestions?


It appears that Excel doesn't like &VAR as is throws in % like it's a space. Look at my screenshot below. See when you open the Excel sheet it is fine, but once it is open it puts the % sign in there.


 -SET &ExcelNme   = IF '&DPVIEW.EVAL' EQ 'I' THEN ' BY_INSIDE_DAYPART' ELSE
-                  IF '&DPVIEW.EVAL' EQ 'P' THEN ' BY_PUW_DAYPART'    ELSE '';

&HOLDCMNT1.EVAL ON TABLE PCHOLD AS 'Daily_SOS&ExcelNme' FORMAT &WFFMT &CMPDRPT1 





WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Redirection Settings - New Question

Copyright © 1996-2020 Information Builders