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 JeddiHi,
Please try this:
TABLE FILE CAR
SUM
SALES
BY COUNTRY
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT="TheNameYouWant", $
END
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
FrankDutchdksib
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
June 04, 2008, 01:56 PM
dhagenI 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.
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
dhagenquote:
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.
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
dhagenDo 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.