Jump to content
We've recently updated our Privacy Statement, available here ×

JI 1.1.0 Direct Report URLs?


jasonw754

Recommended Posts

Try doing in the Link Parameters tab in the screen you are showing in iReport.

 

Code:
				<textField isStretchWithOverflow="true" hyperlinkType="ReportExecution">
<reportElement x="410" y="4" width="105" height="15"/>
<textElement textAlignment="Center"/>
<textFieldExpression class="java.lang.String">
"view"
</textFieldExpression>
<hyperlinkParameter name="_report">
<hyperlinkParameterExpression>"/reports/samples/EmployeeAccounts"</hyperlinkParameterExpression>
</hyperlinkParameter>
<hyperlinkParameter name="EmployeeID">
<hyperlinkParameterExpression>$F{id}</hyperlinkParameterExpression>
</hyperlinkParameter>
</textField>

 

If you are hyperlinking back to another report in the server, you don't need to put the full URL like that.

 

 

 

Sherman

JasperSoft

 

 

Sherman

JasperSoft

Link to comment
Share on other sites

  • Replies 31
  • Created
  • Last Reply

Top Posters In This Topic

I seem to be close of getting my drill downs to work now. However I did not completely follow you in the previous posting.

 

I am going to try the drilldown to work by using the example with the EmployeeAccounts report (as in your previous example).

 

First of all is the value of the HyperlinkTypes field OK (HyperlinkType=Reference)?

 

If pasting the code of previous posting to the Link Parameters Expression field, what should I call the Link Parameter (Value in Link Parameter Field)?

 

What value should I use for the Hyperlink Reference Expression field (by using the Reference tab)?

 

Cheers!

Link to comment
Share on other sites

This discussion is getting even more confusing..

 

If you want to define a drill down like in the style of the EmployeeAccounts sample (which is recommended, and what Sherman suggested), you'll have to

  • set the hyperlink type to ReportExecution

  • add a hyperlink parameter named _report and having "/reports/johnsson3b" as value expression

add a hyperlink parameter named kpi and having $F{id} as value expression

don't set any hyperlink reference expression[/ul]

 

HTH,

Lucian

Link to comment
Share on other sites

bhaugland wrote:

I need to have security in the JasperIntelligence web application. However I want to pass credentials from another web application to the JasperIntelligence so the user is not forced to log on a second time.

 

One way to do this is to write a filter (implements javax.servlet.filter and org.springframework.beans.factory.InitializingBean) that looks at the incoming request and decides whether or not to proceed. This would work if your credentials are contained within a cookie, for example.

 

We did this coming from a RoR web app.

Link to comment
Share on other sites

  • 5 months later...
  • 8 months later...

Hallo,

 

I'd like to give over parameters and login values via URL for viewing an report as pdf-output.

 

Unfortunally the login values doesn't work and the js creates an access dénied error

 

My URL construct looks like this:

 

http://myHost:8080/jasperserver/flow.html

?_flowId=viewReportFlow

&reportUnit=/reports/<myReport>

&decorate=no

&output=pdf

&<para1>=<value1>

&<para2>=<value2>

&j_acegi_security_check?&j_username=jasperadmin&j_password=<myPwd>

 

What's the mistake ?

Which is the correct syntax for building a corresponding URL ?

Where is a description about the URL parameters ?

 

Thx for help

 

Wolle

Link to comment
Share on other sites

Hallo,

 

I'd like to give over parameters and login values via URL for viewing an report as pdf-output.

 

Unfortunally the login values doesn't work and the js creates an access dénied error

 

My URL construct looks like this:

 

http://myHost:8080/jasperserver/flow.html

?_flowId=viewReportFlow

&reportUnit=/reports/<myReport>

&decorate=no

&output=pdf

&<para1>=<value1>

&<para2>=<value2>

&j_acegi_security_check?&j_username=jasperadmin&j_password=<myPwd>

 

What's the mistake ?

Which is the correct syntax for building a corresponding URL ?

Where is a description about the URL parameters ?

 

Thx for help

 

Wolle

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...