I am generating reports with Oracle BI Publisher 11.1.1.6. All generated report's file names (excel, word, pdf) are "xdo" (eg. xdo.doc). How can I change report file name to other value? (I mean Report, not Report job).
In simpler words, I click to generate a report, a file xdo.doc is downloaded. I want that file name to be, for example, kitten.doc.
Thank you.
Create the report template as kitten.doc and upload it on Create layout screen. Use the new template as the template. Now when you click to generate the report it should be named as the template. Hoever, If you schedule the report to run and email itself, you can provide a different name in the attachment name field.
The problem was that my report name contained Lithuanian letters (ą, č, ę, etc.). When I removed them from report name, the files generated by that report where report name_layout name as Annjawn said, but not xdo.* like before.
'Spanish (Chile)' LOCALE,
'PDF' OUTPUT_FORMAT,
table.description OUTPUT_NAME, ------ here name file output!
'EMAIL' DEL_CHANNEL,
Related
I have the following problem. I want to rebrand the Chromium label to my own brand. I have tried this:
How to change Chromium browser logo and name?
so I have tried to replace all occurrences of "Chromium" or "Chrome" in the following files.
src/chrome/app/theme/chromium/BRANDING
src/chrome/app/generated_resources.grd
src/chrome/app/chromium_strings.grd
Now I need the browser to be in another language than English. Compiling the browser, some sections of the UI now have my new brand, but are still written in English, i.e. not translated. I suppose the reason is somewhere, that I have modified the .grd files as these are the template files for the translation. I have also looked into the associated .xtb files. There are the unique numerical ids for the translated string, and I think because I altered the occurences to my own brand in the template, the mapping between the string in the template and the translation in the .xtb file is corrupted.
How can I change the brand as suggested by Asesh in the link above and still have everything properly translated?
I have tried to modify the xtb files with my new brand name as well but the mapping did not work out between the id and the string in the template. I have read about GRIT but if I got it right, I cannot use the grit tool that comes with Chromium to just generate new numerical ids for the translations.
Within the Jenkins UI, on the project page, you can use the Description Setter plugin to set a description AFTER a build. Is there any way to dynamically set this before a build? I would want to pull information from a file in the workspace that shows information about files that will be changed when the user builds the project.
Edit: While I haven't found a way to dynamically set the project description, I did find that I can create an Active Choices Reactive Reference Parameter, give it a descriptive name that serves as a title, and then read the contents of a file containing HTML with a Groovy script like so..
// The contents of the file should be HTML
String contents = new File('/tmp/some_file.html').text
return contents
So I made this my last parameter, and it shows the information that I need to show, before the end user clicks the build button. Solves my problem.
I'm going to leave this question open though, in case someone has a better idea.
While I haven't found a way to dynamically set the project description, I did find that I can create an Active Choices Reactive Reference Parameter (this requires the Active Choices plugin),
Give it a descriptive name that serves as a title, and then read the contents of a file containing HTML with a Groovy script like so..
// The contents of the file should be HTML
String contents = new File('/tmp/some_file.html').text
return contents
You will need to select a Choice Type of: Formatted HTML.
So I made this my last parameter, and it shows the information that I need to show, before the end user clicks the build button. Solves my problem.
Currently, when displaying (downloading) my .xpt bipublisher report as a .xlsx, my only sheet's name is Sheet1. I would like to rename it.
I know you can create xls templates directly and simply rename the sheet, but I'd need to recreate the whole report...
For RTF templates, you can specify a spreadsheet-sheet-name command.
This is from the Oracle Fusion Middleware Report Designer's Guide for Oracle Business Intelligence Publisher - 11g Release 1 (11.1.1) regarding RTF templates:
<?spreadsheet-sheet-name: xpath-expression?>
Where xpath-expression is an XPath expression or a string constant.
The example given is:
<?spreadsheet-sheet-name: {concat(.//YEAR, ' ',.//STATE)}?>
(The guide for 12.2.1 has the same; I do know know about anything prior to 11.1.1.)
Using a RTF you can actually created multi-sheet excel file and also you can rename the sheet. In order to create multiple sheet you need the following instruction:
<?split-by-page-break:?>
And before that instruction you need you use this one:
<?spreadsheet-sheet-name: xpath-expression?>
Next some examples:
<?spreadsheet-sheet-name: {concat(.//name, '')}?> --> It concatenates
<?spreadsheet-sheet-name: {.//name}?> --> It only use the XML field
<?spreadsheet-sheet-name: {normalize-space(upper-case(.//name))}?> --> It applied a trim and upper functions
In my case in my XML data file, i have this field called "name" in a third level:
<sales>
<division>
<name>Groceries</name>
<year>2014</year>
<totalsales>3810</totalsales>
<costofsales>2100</costofsales>
</division>
<division>
...
I'm trying to insert the content of a file inside a job description. My build generates a file and I can find it easily with the following URL: http:/[my-domain]job/[my-job]/lastBuild/artifact/[my-file]. In my case, this is a text file and I would like to display it in the job description. I can easily insert a link to this file with HTML but how can I insert the content of this file ?
What is your Jenkins running on? Windows or Linux?
The Project Description Setter plugin is indeed the way to go, but you need to display the content of your file in the build log first, before the plugin will pick it up.
Like Christopher said, you don't need a job URL to access the file that you have in your workspace.
For Linux, put the following into your shell execute step:
echo -n "[DESC] " && cat myfile
For Windows, use this:
echo|set /p="[DESC] " & type myfile
This will print the content of file and prefix it with "[DESC]". We need this prefix (it can be anything you want) to identify this line to the Description Setter plugin
In the job configuration, under Set build description, type:
\[DESC\] (.*)
One note: only the first line of the file will be printed in description
The Project Description Setter plugin can do this.
I defined aliases for the fields to provide friendly names in the template edition. The problem is that these friendly names are localized and FastReport saves the template with the Aliases, not the Field Names! That doesn't seem very clever.
If I take a template that was created in language A and try to use it with language B, it raises a lot of errors because the fields are not found anymore. Or worse, if someone decides that one particular translation isn't good and change it, that field won't be found anymore.
Is there a way to have friendly names for the fields without substituting the field names of the template that will be saved?
Since FastReports saves all its report templates as XML files, it could be that the easiest way to accomplish what you want to do is write a routine that will read the FastReport XML file and iterate through all of the TfrxMemoView nodes changing the Text attribute to the friendly local name.