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 am trying to do a conditional include based on the input of a dropdown box. I used some code I found in the forum, but it is not working.
This code is in the parent fex: -SET &REPORTTYPE = &RTYPE.(,,).REPORTTYPE.; -SET &DATASET = IF '&REPORTTYPE' EQ 'PRICING' THEN 'MLAPMETRICSORT1.FEX' ELSE 'MLAPMETRICSORT.FEX';
Then in a fex that I am including I make the reference: -MRNOEDIT -INCLUDE &DATASET
I do not get an error, just no data shows up. If I hard code one fex or the other like: -INCLUDE MLAPMETRICSORT1.FEX
it works.
Any help would be appreciated.This message has been edited. Last edited by: Maverick01,
BTW when doing an htmlform with the MRNOEDIT, I do not run into the 8 character limit for file names using htmlform. Hmm...This message has been edited. Last edited by: J,
WebFOCUS 7.7.03/8.0.08 Dev Studio 7.7.03/8.0.08 App Studio 8.0.08 Windows 7 ALL Outputs
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012
Looks like you are right. The original solution I wrote works if the fex is in dataservers and the HTML is in the MRE but not if both of them are in the MRE. This seems vaguely familiar.
The same goes with the htmlform 8 character limit. The limit only applies if the html page is in the MRE.
WebFOCUS 7.7.03/8.0.08 Dev Studio 7.7.03/8.0.08 App Studio 8.0.08 Windows 7 ALL Outputs
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012
Of course not. An MRE-type -INCLUDE is resolved in the client, where & is just another character. &var substitution only happens on the back-end (webfocus reporting) server.
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
An MRE-type -INCLUDE is resolved in the client, where & is just another character. &var substitution only happens on the back-end (webfocus reporting) server.
So, what does that mean?
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
If you tie what j.gross says and what the wordy link I sent you says, it makes sense. Mavericks solution won't work because the include is handled client side.
Because of that, he tried to use the MRNOEDIT feature to handle it on the back end. However, the file he was referencing is located in the MRE, so the reporting server knows nothing about it. If it was located in the data servers section, there wouldn't be an issue.
I think this whole thing goes away in 8 since everything is in one repository. Or have the little birds been lying to me all along.
WebFOCUS 7.7.03/8.0.08 Dev Studio 7.7.03/8.0.08 App Studio 8.0.08 Windows 7 ALL Outputs
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012
Just bear in mind, both of the MR includes will be expanded and sent up to the server (and down again, to the browser, for a round trip, if autoprompting kicks in). If they contain any labels (for GOTO or REPEAT), make sure they are unique across the two (or however many) included MR fex files + the main fex.
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Move the dynamics of which report to invoke out of MR, into the province of the back-end Reporting Server.
* create a little driver fex on the reporting server (not in MR repository), in the same APP folder as the two report fex files;
* hard-code its name and location in the -MRNOEDIT -INCLUDE
* have the driver fex invoke the appropriate report fex (based on the &REPORTTYPE parameter). Note that the -INCLUDE in the driver should not have -MRNOEDIT, since it is stored on the reporting server.
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005