Access the title of a birt report in the master page - birt

I am new to birt and working with a report that has a master page. the inner report has a title property displayed in the XML as:
<text-property name="title"> title here.</text-property>
I want to access this value which will be different in every inner report and display it in the master page. I cant figure out how to access this value.

Got this answer from a co-worker:
reportContext.getDesignHandle().getProperty("title")

Related

Page no for sub report in BIRT Reporting tool

I want to use page numbers for a sub report in Birt 4.2 but it shows only 1 for all pages.
I have used the pageNumber variable in the footer of master page.
It's working fine for single table reports, but for nested or sub reports (table inside table) it shows the number 1 for all pages in .pdf
If the sub report is a different report file you could pass a variable with the page number to it from the first report.
If it is in the same file, verify that the page variable is in the master page and not in the standard report flow.
Consider reviewing https://www.eclipse.org/forums/index.php/t/457987/ for more discussion of page numbers and tables.

How to perform cross navigation with SpagoBI

i've selected a column name of a table and have created the hyperlink using javascript:
"javascript:parent.execCrossNavigation(this.name.'child_report','pclass'="+row("class")+");" ,
where 'child_report' is chid document which must appear when hyperlink in master report is clicked, pclass is some parameter, class is the column name in master report document. But, when i run this master report in spagoBI, it's not showing hyperlink. Can anyone give me the suggestion?
This should be the format should be as shown
Ensure you have the hyperlink type as "URI"
"javascript:parent.execCrossNavigation(this.name,'child_report','pclass="+row["class"]+");"
Happy reporting ;)

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.

SSRS Page footer does not display the correct information after the first page

I am working on a SSRS report for SQL 2005 in Visual Studio 2005 and I need to include information in the page footers from a dataset. I followed the information in the following Microsoft article http://technet.microsoft.com/en-us/library/ms159677(v=sql.90).aspx
I setup several hidden textboxes in the body of the report to hold the aggregated dataset information I need. I then reference those textboxes in the page footer of my report.
The page footer on the first page is correct but on the rest of the report pages the text boxes are not getting the information. In my situation, I am getting the user id and date from a dataset and trying to display it on each report page in the footer.
More details:
In the first hidden textbox (lblDatetime) in the body I get the value from the dataset like the following:
=First(Fields!Date.Value, "headerData1")
In the second hidden textbox (lblUserID) in the body I get the value from the dataset like the following:
=First(Fields!UserID.Value, "headerData1")
I then reference the first textbox in the footer using the following:
=First(ReportItems!lblUserID.Value)
I then reference the second textbox in the footer using the following:
=FormatDateTime(First(ReportItems!lblDateTime.Value),DateFormat.ShortDate)
=FormatDateTime(First(ReportItems!lblDateTime.Value),DateFormat.LongTime)
I tried aggregating the dataset directly in the footer but this is not possible and causes errors.
I came up with a different solution to the one suggested in the article.
Instead of adding hidden textboxes to my body, I created two global hidden parameters. I set the default value using the "From Query" for those parameters to the datasets I needed. I then referenced those two new global parameters instead of the textboxes.
This fixed my issue.

sub report always coming second page of crystal report in visual studio project

I designed crystal report like this:
in this i have a sub report named
TransactionDetailed
that i given in ReportFooter part. while coming records am getting two problems
1->sub report heading not coming all pages,,i want to show sub report heading where ever i am getting subreport
2->in first page of my crystal report only showing main report...not getting sub report,,sub report alwayes showing 2 nd page of my crystal reports onwards,,
how i can resolve these two issues?
The way your report is structured is the reason you are not getting correct results. Report Header and Footer should only contain information you want to show ONCE. Page Header and Footer should contain information you want to see on every page (i.e. a logo, legal info in the footer, etc.). Group Header and Footer will show data for the items you have grouped by. The detail section will show all data that pertains to the group. So either group your data and then put the subreport in the Detail section or create a second detail section and put your subreport in there.

Resources