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've searched on !IBI. I know about !IBI.FIL and !IBI.AMP but is there a !IBI for images? I'ld like to know a list of possible !IBI.things, but i'm really in need of an IMG one..
my alternative is to set the BASEURL to the current edatemp but i haven't been able to figure out the syntax to do that. SET BASEURL=http://localhost:8080/ ...then what? its not approot its not ibi_html both of those are down the wrong alley.. is it some variation of ibi_apps??? SET BASEURL=http://localhost:8080/ibi_apps/.../edatemp/ts000001/ (i know how to get the current agent dir name) any ideas?This message has been edited. Last edited by: susannah,
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
If you have ON TABLE HOLD AS filename FORMAT SVG you might (note: not WILL) be able to reference it as an !IBI.FIL but having never checked that I wouldn't be surprosed if you cannot. You would have to reference it within an image tag but see below.
Setting the BASEURL to the current EDATEMP will be futile, of course, as by the time the web page is rendered in the client browser, the image file will no longer be available unless you have SET TEMPERASE = ON.
The main difference between what .AMP and .FIL does and what you want to do is that both .AMP and .FIL as passed to the client browser as part of the text stream, not so with an image. It has to reside somewhere that the web server can access it.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
If the image is a graph, which is what I suspect if it's in the edatemp directory, use ON TABLE HOLD AS MYGRAPH FORMAT HTMTABLE for the GRAPH. Then use
!IBI.FIL.MYGRAPH; in the HTML.
As far as I know there is only .FIL, .AMP and .GLB for !IBIs'.
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007
thanks Alan, i had hoped i could avoid that.. i wanted to load the images w/o invoking java on the end-users' box. yes, that may have to be the answer. cheers. s
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Java is not invoked at all. WF creates a .png file overlaid with map tags. It places the png file in the same place as a PDF file and uses GETBINARY to retrieve. Light on the browser as it is pure HTML.
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007
The ENABLE_SSG in the admin console is what determines this. If you are getting the graph as a java applet then ENABLE_SSG is probably set to applet instead of the standard YES.
Issue SET GRAPPLETONLY=OFF before the graph to get a server side graph with HTML in the browser instead of Java.This message has been edited. Last edited by: Alan B,
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007
I have code where I had to place the .svg as an image next to the report. I used dialogue manager to set my image name, then used the IMAGE tag within STYLESHEET:
You did not mention how the image file is created in the first place. Is this an image file that already exists and you just want to include it in a report? OR are you creating the image/graph in the execution of the fex and then want to show it in the HTML output?
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
Mick, it wouldn't matter. Just assume its a jpeg in the agent.. I want to be able to address it with ordinary html so i need either ... the BASEURL of that agent (i can find the agent name...that's not the prob) which is what !IBI does under the covers, or.. i need a !IBI syntax for an image.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
1) If I understand correctly, you want the image file to be "embedded" into the return results for HTML output? If this is the case then you need to know that you cannot do this. All images are retrieved from the Web Server after the HTML is passed back to the browser.
2) Let's assume there is a DM VAR called &EDATEMP that gives you the full directory name to where the WebFOCUS agent wrote the image file. There are two issues that will get in the way of getting the image.
2a) The full directory means nothing to the Web Server. It needs a virtual directory defined that points to that full directory in whihc the image file was created.
2b) The image file won't be there anymore unless you tell WebFOCUS NOT to clean up the temp file directory. It sounds like you are doing this already.
A SOLUTION:
Move the image file to a directory to which a Web Server Virtual directory is defined and then code that virtual directory into your image tag.
If I am totally clueless as to what you are trying to do, please let me know.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
This link might help you (or not). It explains what I do to allow access via the Web Server to stuff (images, PDF, etc.) created by the WebFOCUS Server.
Have just had the behaviour that Susannah described, getting java applet graphs when requesting server side. Same program run in 2 different ways, one gave htmtable with associated map and getbinary, as requested, run same fex indirectly gave java applet.
I have ENABLE_SSG set to YES and SET GRAPPLETONLY=OFF in focexec and it was being ignored!
Final answer was to use ON GRAPH SET GRAPPLETONLY OFF rather than plain SET. It appears that WF sees the GRAPH FILE and makes arbitrary decisions ignoring previous SET commands.
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007