Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-17682

query on ireport for jasperreports

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Aggregation Framework
    • None

    Description

      i run an aggregation query in ireport and works fine, but when i run it on server returns null on fields. If i do this query with the equivalent with findQuery works fine and returns data. What's wrong with this?

      {'collectionName' : 'tsin_integrantes',
       
          'runCommand':{
              aggregate:'tsin_integrantes',
       
              pipeline:[
       
                  {$match : {'idPerson':'$P!{idPerson}'}}
       
              ]
      }
      }
      }
      

      but a simple query like this works fine:

      {'collectionName' : 'tsin_integrantes',
       
          'findQuery' : {
          'idPerson': $P{idPerson}
          }
          }
       
       
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            sarjuanca Camilo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: