Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     WFServlet parameter to render an image

Read-Only Read-Only Topic
Go
Search
Notify
Tools
WFServlet parameter to render an image
 Login/Join
 
Member
posted
Is there a WFServlet parameter that can be used to render an image located on the reporting server?

Our reporting server and application server are on different machines. I'm running procedures in batch mode that produce a graph in GIF format, and need to be able to access these graphs in an HTML page. Right now, my only option is to use an external FTP process to grab the image files and move them to the web servers, however this may not be a feasible solution going forward. Does anyone know if there is a way to use WFServlet to retrieve these image files?


Web Server: iPlanet 6.0
App Server: Websphere 6.0
WFClient: 7.6.9
WFServer: 7.6.9 (Windows)
MRE & SSA
 
Posts: 20 | Location: Minneapolis | Registered: July 20, 2004Report This Post
Expert
posted Hide Post
Prior to this last upgrade, we also had a split environment. Our developers used Dev Studio to copy the pages and image filess that they needed from the Data Servers environment to the Web Applications environment. The servlet will not look on the reporting server box for web content when a page is being run from a browser.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Expert
posted Hide Post
... unless you install a web server such as IIS, Apache etc. on the reporting server and make the directory available via that WS.

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, 2004Report This Post
Expert
posted Hide Post
Tony,

For the most part, he is running his reporting server on a Unix platform. He'd have to use a 'share' drive on his Unix platforms or a hub/sub environment. Both of these methods would be slow and the latter creates licensing issues.

It is very easy in Dev Studio to 'drag' components from Data Servers to Web Applications.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Expert
posted Hide Post
Ginny,

I didn't say that it wouldn't have problems, just that it was an alternative Razzer

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, 2004Report This Post
Virtuoso
posted Hide Post
Do you have a license for report caster? If so, schedule the jobs with a FTP delivery.

On a side note, there is some WFServlet calls that are responsible for moving files around (like when you use dev studio to drag and drop them from the reporting server to the web application directory). For kicks and giggles I decided to trace what was happening, and there is a series of commands that are being run to accomplish a file transfer. I tried to mimic them, but there is a bunch of internal stuff that is used to perform caching and encoding that you will not be able to activate. So, for all intents and purposes, there does not appear to be a parameter that will allow you to do what you are looking for.

Now, if you know Java ....


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Member
posted Hide Post
My original plan was to use ReportCaster, however I discovered 2 main issues:

1. ReportCaster apparently decides exacly which image size is best when it creates a graph. Regardless of what I do in the report code to resize the image, RC will create it in 800x400. We need it to be a specific size in order to fit correctly on our site.

2. ReportCaster FTP option allows for only 1 server endpoint. Our environment has clustered web servers, with a couple of entry points. All told, I'd need to FTP the output to at least 9 locations spread across 6 physical servers. The only way I can come up with to do this is to use multiple, redundant RC jobs. (sorta seems like a waste)

Now, the plan is to use RC to create and hold the image files, and use an external process to move the image files around.

Someone suggested using drag-and-drop via Dev Studio; this would be an option. However, I'd like to create a process that requires no manual intervention. I'd like to generate these graphs weekly and have them instantly available to our web app. That's why I was hoping to be able to use WFServlet to do this, rather than phyiscally moving the image files. But, it sounds like it isn't possible.


Web Server: iPlanet 6.0
App Server: Websphere 6.0
WFClient: 7.6.9
WFServer: 7.6.9 (Windows)
MRE & SSA
 
Posts: 20 | Location: Minneapolis | Registered: July 20, 2004Report This Post
Gold member
posted Hide Post
You could probably create a focexec which would be called to display the image. I believe this would then get the image from you data server.

TABLE FILE SYSTABLE
BY NAME NOPRINT
HEADING
""
ON TABLE SET STYLE *
TYPE=HEADING, IMAGE=imagename.png,$
ENDSTYLE
END

This message has been edited. Last edited by: Gizmo,



Windows: WF 7.6.2: SQL Server 2008 R2
 
Posts: 86 | Location: Chicago | Registered: August 03, 2007Report This Post
Gold member
posted Hide Post
If your using Samba, you should also be able to set an alias on your webserver that points to the directory on the reporting server that the file is stored in.

eg. \\servername\usr\ibi\apps\baseapp\



Windows: WF 7.6.2: SQL Server 2008 R2
 
Posts: 86 | Location: Chicago | Registered: August 03, 2007Report This Post
Member
posted Hide Post
quote:
You could probably create a focexec which would be called to display the image.


I'm not sure I see how this is going to work. How can I create a fex with HTML output that can render an image without that fex being someplace accessible over HTTP? When I run a request like you suggested, it displays a broken image. It's looking for the image at /approot/[app folder], which doesn't exist since the app server and data server are on different physical machines.

quote:
If your using Samba

Wouldn't that be nice..?!? Unfortunately, Samba isn't a supported utility...

Thanks for the suggestions. If anyone has any other suggestions, please let me know.


Web Server: iPlanet 6.0
App Server: Websphere 6.0
WFClient: 7.6.9
WFServer: 7.6.9 (Windows)
MRE & SSA
 
Posts: 20 | Location: Minneapolis | Registered: July 20, 2004Report This Post
Expert
posted Hide Post
Please check my posts above. The answer is there. You have to copy the images to the ibi/apps directory path being pointed to by your web server.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Member
posted Hide Post
quote:
Please check my posts above. The answer is there. You have to copy the images to the ibi/apps directory path being pointed to by your web server.


Yep. It sounds like their is no way to utilize WFServlet to render the images, so I'll have to physically move the files. Now, I just need to find a good, non-manual process to do so.


Web Server: iPlanet 6.0
App Server: Websphere 6.0
WFClient: 7.6.9
WFServer: 7.6.9 (Windows)
MRE & SSA
 
Posts: 20 | Location: Minneapolis | Registered: July 20, 2004Report This Post
Expert
posted Hide Post
You can write a script on the Solaris box, fired off by cron or some scheduler, that does an ftp to the Windows box.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     WFServlet parameter to render an image

Copyright © 1996-2020 Information Builders