Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7494657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:42:02+00:00 2026-05-29T17:42:02+00:00

Could some indicate a working example or a snippet of code for JasperReports regarding

  • 0

Could some indicate a working example or a snippet of code for JasperReports regarding ArrayList as a Field in a javabean datasource.

I have a List of Employees. Each Employee has a name field, and an array of Phone with type and number as its fields.

Do i use a subreport for Phones I have not found a working example? Cant seem to compile subreport_jasper file?

Do i use a list component instead…

<c:list ...>
    <datasetRun subDataset="Addresses">
        <datasetParameter name="Phone">
            <datasetParameterExpression><![CDATA[$F{Phone}]]></datasetParameterExpression>
        </datasetParameter>
    </datasetRun>

This does seems to work either?

Thank in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T17:42:08+00:00Added an answer on May 29, 2026 at 5:42 pm

    I wrote this article while working with MongoDB. It deals with handling fields that are collections. It should be exactly what you need. (You can just ignore the MongoDB part.)

    The key idea is that you use this to pass data to a List or Table or Subreport:

    new net.sf.jasperreports.engine.data.JRMapCollectionDataSource($F{PhoneArray})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have an issue i could use some help with, i have python list
Do you know where I could find some useful third party (free) code snippets
I'm working on some code that dropped on me when another developer (and the
I have a working query that will return some results(records) from my database, like:
I wrote some code that should add database response to the List. it works
Could some one tell me how to capture SOAP messages passed between the client
Could some one guide me to create a APS logon token in .Net programmatically?
Iam getting the following error , could some one help me how to fix
I'm looking for an online introduction to occam 2. Could some one help me?
I could use some help writing a regular expression. In my Django application, users

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.