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

Store in variable value of parameter bean property


Joe Taras

Recommended Posts

Hi to all,

I'm newbie about Jasper report.

This is my issue:

I've defined in Spring a bean named EnvParam. I've passed this bean in my report processed  by Jasper, using an hashmap of parameters.

In Jasper XML report configuration I've mapped my bean with import tag in this way:

<import value="Mypath.EnvParam" />

So I've defined in Jasper some variables in this way:

vardummy = $P{EnvParam}.myProperty

So in GUI element I've linked $V{varDummy}.

When I run my application, my report doesn't show the correct value of property, setting NULL in my GUI element.

But if I put in my GUI object my property $P{EnvParam}.myProperty without using of variable the value will show correctly.

Where am I wrong? 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...