Jump to content
We've recently updated our Privacy Statement, available here ×

shiche

Members
  • Posts

    3
  • Joined

  • Last visited

shiche's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I have a group and want to count pages for each one. The problem is, that I know how many pages on the last page of the group. But I must print how many pages on each page that belongs specified group. How to do such thing? If you know documentation where problem was described, I will grateful.
  2. Good day. I have three objects: VSpec, VSpecPart,VSpecPosition and HQL-query. The report displays VSpecPosition, its grouped by field VSpecPart part in VSpecPosition class. All works fine until I try to print another field FROM CLASS VSpecPart with VSpecPart.toString(). I try to write $F{part}.toString()+" "+$F{part}.getClass().getMethod("getQ",null).invoke($F{part}).toString(), but get the error : The method invoke(Object, Object[]) in the type Method is not applicable for arguments (Object). How I must write expression to access private field q? public class VSpecPart extends VDBObject implements Comparable { private VSpec spec; private int q=1; private List<VSpecPosition> positions=new ArrayList<VSpecPosition>(); ... } public class VSpecPosition extends VDBObject { private VSpecPart part; ... private int q=1; ... public int getQ() { return q; } ... } HQL-query: (from VSpecPosition p where p.part.spec=$P{SPEC})
×
×
  • Create New...