java - How to access a parameter in jrxml file and Print it? -


my query is, have set parameter in java file given below

map<string, object> parameters = new hashmap<string, object>(); parameters.put("reporttitle", "mrsg quarterly report"); 

how access in jrxml file , print text?

you need declare parameter in jrxml

 <parameter name="reporttitle" class="java.lang.string"></parameter> 

then call in text field

<textfield isblankwhennull="true">                  <textfieldexpression class="java.lang.string"><![cdata[$p{"reporttitle"}]]>   </textfieldexpression> </textfield> 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -