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

nimaraheesh

Members
  • Posts

    3
  • Joined

  • Last visited

  • Days Won

    1

nimaraheesh last won the day on November 27 2023

nimaraheesh had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

nimaraheesh's Achievements

  1. i want a main group in my jasper report, in that i want a detail band and 2 sub groups each subgroup contains 1 detail band each. is it possible?
  2. i got it data = { "reportUnitUri": "/reports/samples/naokiDemo", "async": "false", "freshData": "false", "saveDataSnapshot": "false", "outputFormat": "pdf", "interactive": "false", "parameters":{ "reportParameter":[ {"name":"queryConditions","value":[QCondition]}, {"name":"headPara","value":[repHead]} ] } }
  3. def getreport(): result = {} formdata = request.vars to_date = formdata['to_date'] from_date = formdata['from_date'] vehicle_no = formdata['veh_no'] customer = formdata['customer'] estimate = formdata['estimate'] invoice= formdata['invoice'] jobcard = formdata['jobcard'] data = """ <reportExecutionRequest> <reportUnitUri>/reports/samples/naokiDemo</reportUnitUri> <async>true</async> <freshData>false</freshData> <saveDataSnapshot>false</saveDataSnapshot> <outputFormat>pdf</outputFormat> <interactive>false</interactive> </reportExecutionRequest> """ jasper_view = JasperView("jasperadmin", "jasperadmin", data) report_pdf = jasper_view.post() # Get the report in PDF format # Set the appropriate headers and return the PDF as the response response.headers['Content-Type'] = 'application/pdf' response.headers['Content-Disposition'] = 'inline; filename="report.pdf"' return report_pdf its part of my web2py controller now i want to send some data to jasper report query to get some dynamic results
×
×
  • Create New...