[jasperreports-questions] List of parameters to PDF

2009-08-21 Thread vishnukumar

Hi,

I am new to jasper reports. I am passing parameters as following.

ListString courseModules = new ArrayListString();
ListString marks = new ArrayListString();

courseModules.add(spoken english);
courseModules.add(Medical Transcription);
marks.add(20);
marks.add(30);

Map model = new HashMap();
model.put(courseModules, courseModules);
model.put(“marks”, marks); 

I use ResourceBundleViewResolver. In .jrxml, I map parameters as 

parameter name=courseModules class=java.util.List/
parameter name=marks class=java.util.List/

I got printed as 

[spoken English, Medical Transcription]
[20, 30]

But, my requirement is, I have to print like

   Course   Mark
Spoken English  30
Medical Transcription   40

I don’t know how to iterate the elements in the list in jrxml or any other
solution will be good as well.
Please, help me

Thanks
Vishnu
-- 
View this message in context: 
http://www.nabble.com/List-of-parameters-to-PDF-tp25041091p25041091.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] How to dynamically set the background color of a field? Thanks.

2009-08-21 Thread Taras Matyashovsky

Hello,

I'm also interested in this issue.
Have You found any solution?

Thanks,
Taras


mctpursuer wrote:
 
 Hi, I need to dynamically set the background color of a field in the
 report, e.g. a field called first-level manager, second-level manager, if
 the first-level manager.isCurrentManager == true, then I want to give the
 first-level manager a particular background color, how can I archieve this
 in JasperReport? Thanks a lot.
 

-- 
View this message in context: 
http://www.nabble.com/How-to-dynamically-set-the-background-color-of-a-field--Thanks.-tp22285675p25024544.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions