Focal Point
ReportCaster - Excel

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7431015682

June 04, 2008, 09:37 AM
<dksib>
ReportCaster - Excel
I am creating an Excel Workbook with multiple sheets. Is there an easy way to customize the default file name that gets assigned by Excel - what is there now is the name of the Servlet in ReportCaster that generated the report (i.e. "getreport").

Thanks for any inputs.
June 04, 2008, 10:24 AM
Majid Jeddi
Hi,

Please try this:

TABLE FILE CAR
SUM
SALES
BY COUNTRY
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT="TheNameYouWant", $
END


WebFocus 7.6.5
AND WebLogic server as web server
sql2005 as database server
June 04, 2008, 11:46 AM
<dksib>
Majid - TYPE=REPORT, TITLETEXT="TheNameYouWant", $

Will only name the sheet not the workbook.
June 04, 2008, 12:30 PM
FrankDutch
dksib

Please do a search on this focal point site to find related subjects. It might help.

Else I can think of a workaround depending on the point if you want that filename to be always the same or having a different name every day and if you already use the BURST functionality!

Please give me some additional information.

Summit2008, Nashville




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

June 04, 2008, 01:56 PM
dhagen
I assume that when you say the servlet name is "getreport", then you are actually talking about Report Library (the archive process under Report Caster). If this is true, then there is not an "easy" way to change the default file name.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
June 04, 2008, 02:34 PM
<dksib>
dhagen - you are correct.
I am talking about the Report Library. I need to be able to change the Name based upon the Report name plus a varible that is pased from the scheduler called JIT and the date timestamp. Also, if it is going outside of the company to add the certificate.
June 05, 2008, 04:33 PM
dhagen
quote:
Originally posted by dksib:
I need to be able to change the Name based upon the Report name plus a varible that is pased from the scheduler called JIT and the date timestamp.


When you store a report in library, there is no "name". The report is stored as a blob in a database. The name that you see in the interface is actually the schedule job description.

So, if you actually want to change the name of the URL (file), then you would have to:

a) implement a filter to fire on /getreport/* that would:
1) Query the database for the Job description.
2) Query the system for the time.
3) Query for this JIT or whatever else you may want.
3) Issue a redirect to a new url that was the job name | system time etc. (e.g. /rcaster/2008_Financial_Statement_5-Jun-2008_4pm?...&MYLIB=Y)
Note: You should add another parameter here to identify that this is your redirect so that you can do something about it later.

b) implement a second filter to fire on /* that would:
1) look for the existence of your custom parameter from step 3 above. (If false then ignore the rest)
2) Issue an internal forward to /getreport with all the original parameters.
3) Sit back and accept the accolades of a job well done.

Certificates are a function of the channel not the process. They don't have anything to do with the above.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
June 10, 2008, 11:34 AM
<dksib>
dhagen,

The list is very useful, but I have no clue on how to do what you are asking. Can you give an example or point to one?

Since the Certificates are part of the channel will it be added automatically?

Thanks
June 17, 2008, 10:23 AM
dhagen
Do you have any JAVA developers available to you? Unless you have experience with JAVA and with Filter patterns, this is not be a trivial conversation. If you have a JAVA developer available to you, they are welcome to PM me for more detail. Unfortunately, I do not have an example of what you are asking for, and I do not have the time to put together a quick test together for you.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
June 18, 2008, 01:06 PM
<dksib>
Thanks for the update.