• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help with IReport and accessing model beans on a model bean

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
basically i have an array list of object that references another object for example i have a list of Invoice that has a variable of class Client. inside client contains the name of the client now how do i access client's name inside the invoice?

edit:

do i have to make a subreport every time i need to access the client's name?

edit 2:

i've got it. the expression given is basically the variable of that type class it represent which means you could access the models methods the same way you access them in java
for example: i've got a client with a method/getter getName() to access it you just add .getName() to the expression like so $F{client}.getName() and with that we can access the method getName()



 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic