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.
I have a network folder path that I want to appear in a html report output. I use the <> characters at the beginning and end of the network path to account for the space character in the folder path. However, when I run the focexec, I get an error message that the field \\abcd could not be found.
How do I include a network path with a space character as a clickable link in a -SET?
Right now I'm using -SET to assign the value to a variable:
-SET &HEAD1 = '"'|'1. Extract the text file to <\\abcd efg>.'|'"';
TABLE FILE BASELINE
PRINT
EMAIL2 NOPRINT
ON TABLE SUBHEAD
&HEAD1.EVAL
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
ENDSTYLE
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT HTML
END
This message has been edited. Last edited by: ColdWhiteMilk,
I'm not sure if this is what you want but I tried it and didn't get any errors and the space between abc efg was left intact.
-SET &HEAD1 = '1. Extract the text file to \\abcd efg.';
TABLE FILE CAR
PRINT
COUNTRY NOPRINT
ON TABLE SUBHEAD
"&HEAD1"
ON TABLE SET PAGE-NUM OFF
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
ENDSTYLE
END
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
The < causes WebFOCUS to expect a column [field) called \\abcd to be in in the table.
The quickest way to embed < and not have it translated by WF is to use the HTML entity name for the greater than and less than symbols [with pipe |):
-SET &HEAD1 = '"'|'1. Extract the text file to ' | '<' | '\\abcd efg|>.'|'"';
TABLE FILE CAR
PRINT
COUNTRY NOPRINT
WHERE RECORDLIMIT EQ 1
ON TABLE SUBHEAD
". Extract the text file to &|lt;\\abcd efg&|gt;."
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
ENDSTYLE
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT HTML
END
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
Originally posted by BabakNYC: I'm not sure if this is what you want but I tried it and didn't get any errors and the space between abc efg was left intact.
The space being intact is not the problem. The problem is that when it runs to html (and then is used in the body of the email from report caster), I want to be able to click on the link and go to that folder. With the space intact, but the link not being recognized as one text string, the link does not work.
As found on the web: Use (escaped) forward slashes. The server name and share name should be included. Use %20 for blanks, though these are automatically added for file tags. This will most likely only work with IE. Reading material: Stack Overflow: What are the ways to make an html link open a folder
TABLE FILE CAR
PRINT
COUNTRY NOPRINT
COMPUTE LINK1/A100 = '<a href="file://///server-name\share-name\abcd efg">abcd efg</a>'; NOPRINT
WHERE RECORDLIMIT EQ 1
ON TABLE SUBHEAD
"1. Extract the text file to <LINK1"
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
ENDSTYLE
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT HTML
END
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
Not to rain on your parade, but network links like that in HTML are only going to work in Internet Explorer.
Other browsers refuse to go there, mainly because of all the security risks involved. It wouldn't surprise me if even Microsoft would stop supporting that starting with their new Edge browser.
A way to provide those files for all browsers is to make those network directories available through a web-server. We did that for a couple of network directories from within IIS on our reporting server; that's an ugly hack, but it gets the job done.
IMHO, IIS should not allow to host directories that are on a remote network drive that it has no control over whatsoever, but hey, it's a Microsoft product and they do not concern themselves with security.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
The %20 solution works how I want it to. When I output this to HTML, and then use that HTML output as the body of the email in the report caster task, Outlook treats the resulting link as a clickable link to the network folder.
-SET &HEAD1 = '"'|'1. Extract the text file to <\\abcd%20efg>.'|'"';
TABLE FILE BASELINE
PRINT
EMAIL2 NOPRINT
ON TABLE SUBHEAD
&HEAD1.EVAL
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
ENDSTYLE
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT HTML
END