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'm working in an environment in which all FEXes and HTML-files are within domains in MRE. No problems there.
When I need to call an HTML-page from one of these FEXes something like the following (if you have a file called 'htmlfile.htm') will do:
-HTMLFORM htmlfile
We have a FEX that loads something like 20 to 30 parameters which are used in our HTML-files which are in turn used to run some reports. The idea is to call the FEX, and then to load the required HTML-file via a parameter (which is already available in the FEX). Something like:
-HTMLFORM &HTMLNAME
Somehow this doesn't seem to work in MRE. It just looks for a file called &HTMLNAME.htm. After a lot of searching I came across the -MRNOEDIT command. This does interpret the parameter, but then looks for the HTML-file in the IBI/APPS directory (application). It won't find the file there because the HTML-file exists only in MRE.
I've been trying for a few days now and tried this on versions 7.1.4 to 7.6.4 and different server setups (reporting server and client on the same machine; the two on different machines), but this somehow does not work.
Anyone know a workaround or am I doing something blatently obviously wrong?
You can test this of course by creating an HTMLfile in a domain and a FEX calling that HTMLfile. -HTMLFORM htmlfile will work. -SET &HTMLNAME = 'htmlfile' -HTMLFORM &HTMLNAME will not (also not with .EVAL, .QUOTEDSTRING)This message has been edited. Last edited by: Kerry,
Only problem with that last solution is you are opening up your secure MRE environment by adding part of the domain structure to the server path. I would stay away from that as much as possible. With a slight tweak, people could be getting into places they shouldn't.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Tony; perhaps it would be best if I explained the whole situation.
What I'm searching for is a way to use one generic FEX (so that for all new reports to be created I can use this FEX as well) to point to, which loads a specific HTML-file. As you pointed out; the generic FEX has an INCLUDE which loads a set of parameters which can then be used in the HTML-file with the !IBI.AMP.VAR; syntax.
The way we implement it in MRE now is the following: - A URL is created in the domain which uses a MRE URL to the generic FEX with 1 extra parameter; the HTML-file it needs to load next. This URL is what the user gets in the Dashboard. - The HTML-file to be loaded is also located in the domain and uses the !IBI.AMP.VAR; variables loaded in the generic FEX. - The HTML-file then loads it's specific FEX
I hope this sheds some more light on the subject! Perhaps there's a better way to implement this in MRE and the Dasboard?
Darin, you're absolutely right about the security; it's the main reason the customer wants to keep everything located in the MRE domains.
I also would agree with Darin, if this addition to the servers path would be permanent. Since this is done only within this fex and only for the time it takes the server to access the htmlform, and since the server has to access the form anyway, wherever it is located, I think the security breach is virtually non-existent. And, as I said before, you could store your htm files anywhere, they do not have to be present in the domain structure. As long as you point your server to where it can find them, it's ok. As you have also found, there is not any other obvious way to present an MRE-htmlform with a variable name....
Hope this helps ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
It's most certainly an option worth looking into. There's an extra catch here though were the way WebFOCUS is implemented is an extra thing to take into account; The Client is installed on a Windows machine (7.1.4), the Reporting server on a UNIX machine (7.1.7).
I've been trying your suggestion, but I suspect this is the reason it can't do anything with the APP MAP? Since this is a Windows path (and I have the correct path), and it looks like the MRNOEDIT makes it look for the file on the UNIX machine (anyone know if this is actually the case?).
You're absolutely right. Since it is the server that will instruct the webserver what to do, it will look at the server only. MRE is implemented by means of applets, and thus runs mainly on your own workstation. Executing a procedure from MRE will be started by the servlet engine, which runs wherever webfocus client is installed. The servlets will take care of locating the right procedures and will ship them over to the server for execution. This is exactly the reason why -HTMLFORM &somename will not work within MRE, because the servlets will start looking for a file with the name &somename. Servlets do not have any notion of program variables. Since the value of the variable is only known at runtime, you will have to have the htmlfiles that you want to show on the unix side of the equation. I hope this explanation of how things work internally will help you in finding a solution.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Thanks for the info! Fully understanding the problem brings you closer to the solution of course, so all information about it is always welcome.
As a note -- I've also been trying to do things like create a FEX on the fly (with the -HTMLFORM in it) and INCLUDE this straight away. Of course this has the same problem; the FEX is created on the Reporting server, and I'd want it to INCLUDE something within MRE. The way we have it working right now is that we use labels. Something like: -GOTO :&PAGE -:htmlfile1 -HTMLFORM app/htmlfile1 -GOTO :end -* -:end Of course this has the huge drawback that every HTML-file you need to call has to be in here.
I think I'm going to see if I can change the way the URL's, HTML-files and FEXes have been set up here to get to the desired functionality.