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.
And using a &ENV in the -INCLUDE isn't possible. IBFS:/WFC/Repository/&ENV/std_reports/common/pdf_footer.fex gives the "Names cannot contain any of the following characteres: Space&*()|:;",?/...
How have other people hacked this? The code needs to move between environments automagically without human touch, and you really can't go on a string replace spree... well, technically you might be able to replace the string in the import/export folder package, but this gets way way overcomplicated.This message has been edited. Last edited by: Hank W.,
Cheers, H. WebFOCUS 8.1.05M Oracle 11g - DB2 RedHat
Posts: 115 | Location: Brighton UK | Registered: February 19, 2005
If I'm not mistaken, you have the extra issue of the Content area does not evaluate & variables until after the -INCLUDE is evaluated. I believe you need to either prefix your include command with -MRNOEDIT, or it has to exist on the reporting server. I remember there being some trick to getting it to work. But it won't work as expected in the content area.
Eric Woerle 8.1.05M Gen 913- Reporting Server Unix 8.1.05 Client Unix Oracle 11.2.0.2
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013
You are right eric, there is an issue doing -INCLUDE &CALLFEX from the Content.
But I'm doing : &CALLFEX which will not have to evaluate a parameter in the INCLUDE since the variable have the whole string already setup and assigned.
Unfortunately I don't have the time to test it but if I remember well this is the way I have used to bypass the INCLUDE issue with WF8.
Still to confirm to it works...
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Hank W., I did some experimenting with relative paths. I created a domain and subfolder consistent with your examples and the following does seem to work in 8.1.05 and 8.2.01.
A fex, for example,
/Domain1/dev/std_reports/report1.fex
can include another, like this:
-INCLUDE ./common/pdf_footer.fex
In my limited testing, this worked for files located along the same path in the domain/folder structure. But I couldn't get it to work for files in a peer folder not on the same top to bottom path.
ONE IMPORTANT GOTCHA: The behavior is different when running from the editor vs. running it from the tree.
WebFOCUS 8.2.06
Posts: 210 | Location: Sterling Heights, Michigan | Registered: October 19, 2010
Thanks guys... I experimented a bit and it looks like I am getting the behaviour of a cd command in the -INCLUDE as dbeagan pointed out.
I think for my purposes it's easier to hardcode the relative path than do a logic. (Might got to do with losing my mojo hearing WF is going to be replaced in a couple of years, so my hacks won't survive the time )
Cheers, H. WebFOCUS 8.1.05M Oracle 11g - DB2 RedHat
Posts: 115 | Location: Brighton UK | Registered: February 19, 2005
We have a common folder structure between our development, test and production environments. I can use this syntax and freely move focexecs between environments:
I am a bit puzzled how that scheme can succeed in pulling in the right version based on &ENV
1. For each Client-side -INCLUDE statement (with IBFS:/WFC/Repository/...), the Client arranges to upload the referenced fex file to the Reporting Server along with the report script, and replaces the -INCLUDE statement in the script with a Server-side -INCLUDE that points to the uploaded copy.
2. Thus by the time the Reporting Server gets to evaluate &ENV and perform the -GOTO, the contents of all three fex files are effectively present as static code in the report fex.
3. If anything goes wrong within the Included code, the Reporting Server is able to reference the correct fex name and line number.
So how does it come about that the three server-side -INCLUDEs wind up pointing to local fex files on the server with identical filenames but with different code content (obtained from the respective Domains)?
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
... the following does seem to work in 8.1.05 and 8.2.01.
A fex, for example,
/Domain1/dev/std_reports/report1.fex
can include another, like this:
-INCLUDE ./common/pdf_footer.fex
In my limited testing, this worked for files located along the same path in the domain/folder structure. But I couldn't get it to work for files in a peer folder not on the same top to bottom path.
Did you try "./../siblingdomain/etc"?
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
For the last couple of years I've been working on an application were we do not have 'variable named' paths in the Repository Content folder structure.
I am now going back to work on one of our legacy systems were environment is built into the path names. e.g., ../dev/reports.. ../uat/reports..
I'd like to add a comment and a request to this thread.
My comment is that I took at look at the case I opened just now, and see that my NFR was rejected by IB Engineering on 9/18/2014 (case 10553585). If anyone else created a NFR, was your request rejected as well?
My request is to ask if the 'traffic control' workaround is the only workaround available? Are there any other workarounds, that someone would be willing to share?This message has been edited. Last edited by: David Briars,
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