Birt report set table page break in script on basis of report format - birt

I am using BIRT 4.5. and the eclipse report design perspective
I have some reports which have tables in them.The output format of the reports is XLSX, PDF, and HTML.
Currently the page break for the tables is set to 50 and repeat header is checked.
However for only the XLSX format I want to set page break 0 and repeat header to false.
How can I do this conditionally where and what condition do I exactly need to put.Please suggest.Thanks.

I have found the answer for this.
In the report design perspective in eclipse click on the table in the Layout view then click on the script tab and select the onPrepare event.
Put the following script here:
if(reportContext.getOutputFormat()=="xlsx")
{
reportContext.getDesignHandle().findElement("report_data_table").setIntProperty("pageBreakInterval",0);
reportContext.getDesignHandle().findElement("report_data_table").setIntProperty("repeatHeader",false);
}
Replace the "report_data_table" with your table name.Hope it helps if anybody else face this issue.

Related

Edit button gone in Interactive Report Oracle APEX

so im trying to create an interactive report using apex. Usually, it will automatically create CRUD operation in the report. But somehow, the edit button (pencil and paper icon) in my interactive report is gone and i don't know how to fix nor adding them manually. Before it was gone, I changed my IR to Classical report since after i upload the table, APEX doesn't show all the columns (only 8 out of 9 column showed). And after that, I return the table into IR since all the column showed, but this is where the problem started.
Any thoughts?
go to report's Attributes properties tab (on the right hand side of the Page Designer screen)
set the Link property to "Link to Custom target"
target will be "page in this application"
choose it from list of values (or type it manually, if you know its number)
as you'll want to pass item(s) value(s) from the report to form page, set items
That's all.

Oracle APEX Interactive Report Column Hyperlinks & Variables

I'm using APEX 5 for the first time and trying to link users to the same page from an interactive report column.
The page being linked to will display different data, depending on which row user clicked.
I don't know what data to depend on to generate the new page, my thoughts are to write (a href) statements but not sure how variables are supposed to be stored this way.
Any advice or help would be greatly appreciated!
Wrong approach, in my opinion.
You should have done this:
create a new page
choose the "Report" page type
choose "Report with Form on table"
It'll create both Interactive Report and a "linked" Form which will be used for the purpose you described. You don't even have to write a single line of code, Apex will do everything for you. You'd just click the icon at the beginning of the Interactive Report row, and it'll lead you to the Form and display values related to that very row.

Highlight row on Interactive report permanently APEX

I want to highlight specific rows on Interactive reports in APEX I go to format > Highlight then set the criteria needed for Highlighting desired rows. My problem is that this is a temporary solution. I need these configurations to be set as default so that any user try to use this report results appear highlighted as in criteria set before.any Help?
This is given in documentation read http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ir_using.htm#CHDDDBCG
and accordingly save your highlighed report as a default report which is permenent one.
As a developer, you can save standard reports which will be shown to users by default.
To do this, first generate the report you want to show as default, with all your filtering and highlighting etc.
Then from the Actions menu, select Save Report. Then select As Default Report Settings from the Save select box.
This option is only available if you are logged into the builder at the same time.

Hyperlink in Oracle Reports (.RDF) Content using Oracle Report Builder

I am not sure if this is the correct forum to ask this question,
I am currently creating an oracle report (.RDF) using Oracle Report Builder and my client wants me to place hyperlinks in the content instead of putting URL in the content.
This report is going to be generated as PDF.
My current sentence looks like
Click here (http://international.usp.ac.fj/?page_id=114) to see USP
member countries.
The URL automatically converts to hyperlink in the above sentence.
What my client wants:
Click here to see USP member countries.
I tried to look for an option where I can use HTML <a> tag.
I would like to know if there is a way to include hyperlinks in Oracle Reports.
Thanks
What you could in order to achieve this is, select property inspector of item you would like to have hyperlink and choose Hyperlink.
Also choose Yes for Contains HTML Tags.
Format for passing dynamic values in URL is
http://www.google.com?pid=&DEPTNO where DEPTNO is the value in report.
Update
This is what I did to achieve your expected output, you could modify based on your requirements
Created sql query for the source
select 'Click here' txt from dual
Select Property Inspector for the field
Added link in Hyperlink property and selected Yes in Contains
HTML Tags
To see the output, generate report as PDF or run report in web
browser.
Hope this helps.

Inserting table creates page break in SSRS Reports

I am creating SSRS Report using Microsoft SQL Server Report Builder 3.0.
I am having some page-break related problems. Whenever I insert a table in my report, it generates a page break at the end of the table.
Is there any way I can have this page break not generated?
Well, I don't really know why, but this worked for me:
Remove page header and footer, and put header/footer content in body itself (but this is not something you can do if your report has more than one page).
This is one check to make. In the tablix properties, find the Pagebreak - disabled property and see if it's set to "False." (If it is, set it to "True".)

Resources