Jump to content

mike_28

Members
  • Posts

    1
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by mike_28

  1. I had a similar issue that I solved by the following:

    • dowload iReport Designer or jaspersoft studio from sourceforge
    • Create a Data Adapter and add your mongo database with login credentials
    • Create a JasperReports Server Connection and refer it to your own JasperReports Server instance
    • Create a new JasperReport using the Report Wizard
    • After creating your report, publish / upload it to your JasperReports Server.
    • The .jrxml file will now be visible within your JasperReports Server as a 'Topic'
    • Login and Create an Ad-Hoc-Report in your  JasperReports Server
    • Choose the Topic selection and browse to the directory that you uploaded your report to previously
    • And that should be it!

    However, the problem that I encountered througout this process was that there were no fields from my mongodb visible. The Jaspersoft Studio tool Preview produced an empty report. 

    My database, called shortstories, has a collection called hardbackbooks. And each row in 'hardbackbooks' contains the 2 fields, content and created_date. The query string I used when creating the report is below; Can anyone help with this JasperSoft to MongoDB syntax, please? 

    {collectionName : 'hardbackbooks',
     
    findFields : {
    'content':1,
    'created_date':1},
    rowsToProcess:20
    }

     

×
×
  • Create New...