Jump to content
Changes to the Jaspersoft community edition download ×

Parameter as a value of an attribute

2005 IR Help

Recommended Posts

By: Janne - jakulin

Parameter as a value of an attribute

2004-05-04 05:08



I'm trying make some parts of the report parameterized, mainly fore and background colors of some report elements. I've got this:


<parameter name="pHeaderBGColor"



<parameter name="pHeaderFGColor"





<reportElement mode="Opaque" x="2" y="2"

width="470" height="16"

forecolor="#ff3333" backcolor="#000000"/>


<textFieldExpression class="java.lang.String">






If I try to use those parameters as a value of fore- and background colors, I get this error message:


ERROR Digester - Parse Fatal Error at line 34 column 80: Open quote is expected for attribute "forecolor"


Is there a way to do this and if so, how?










By: Chuck Deal - cdeal

RE: Parameter as a value of an attribute

2004-05-04 05:21

You may not be able to do this through XML. You may have to do it programmatically, via the API.

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