dheeraj.madhu Posted August 9, 2013 Share Posted August 9, 2013 Hi, Is it posible to map the values while generating the reports?Suppose if we have following xml<response id="1074200577"> <results id1="0" id2="0"> <field count="7556">one</field> <field count="7524">two</field> <field count="7402">three</field> <field count="7304">four</field> </results> </response> [/code]Generating the Report will give this as one7556two7523three7402four7304However i dont want the names as in the input xml rather i want them to be mapped to different name asName 17556Name 27523Name 3 7402Name 4 7304I tried to do this by inserting the mapped names to Paramerter map. But i was unable to get the new name and set itI tried to do following code <textFieldExpression><![CDATA[$P{[$F{field}]}]]></textFieldExpression>[/code]But this doesn't work. How to get the map value depending on a key and replace the value in a report? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now