Jump to content

Dynamic valorization of attributes ?


Recommended Posts

By: bulkao - bulkao

Dynamic valorization of attributes ?

2006-04-06 08:01

Hi,

 

I would like to valorize an tag attribute (e.g: the height attribute on a <reportElement>) at runtime, that is at "fill" time.

 

So i tried something like this (in jrxml file):

 

[...]

<parameter name="hBand" isForPrompting="true" class="java.lang.Integer"/>

[...]

<reportElement

mode="Transparent"

x="0"

y="10"

width="515"

height="<![CDATA[integer.parseInt(hBand)]]>"

...

/>

 

It fails !

 

Any workaround ?

Thanks in advance.

 

 

 

 

 

 

By: bulkao - bulkao

RE: Dynamic valorization of attributes ?

2006-04-07 01:32

Maybe the solution stands in giving a "key" to the <reportElement>, and adressing the key in a scriptlet ?...

 

But how to do this ?

 

Thanks for any help...

Link to comment
Share on other sites

  • Replies 0
  • 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...