Jump to content

aalya

Members
  • Posts

    7
  • Joined

  • Last visited

aalya's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Steps to be followed: 1.Create a main report 2.give the path of the Field ,u wan to iterate. 3.Create a sub report in main report and give the path of details in sub-report which is common and you wan to iterate .Remember that generally we give this path from root but in this case give it from where it starts after the path given in main report and start with // 4.Ex. main report path:"School/Class/Student" Sub-report path:"//Division" It means the detail of Student is present in Division like @parent,@Address,@phone_num It will look like: Amit Shreya,Varun New york 1234567890 Naveen Deepa,deepak Paris 9807654321 I worked on such reports and its wrking properly.
  2. actually by default the jasper file take the sub-report path from jasper tats y i told u to put the subreport in jasper folder and give the file name as "jasper/animalesficha_subreport1.jasper"
  3. Ok,as you mentioned that your main report and sub-report both are in the same folder then give the sub-report name "animalesficha_subreport1.jasper" in sub-report expression propert. Property:Connection Type->use a datasource expression Property:Data Source Expression ->give the path accordingly whether it is for emplt or you are taking value from somewhere else....... Hope this will resolve your Query.
  4. Remove "$P{SUBREPORT_DIR}" from the path and append file name with "jasper/Jasper_file_name"
×
×
  • Create New...