query on ireport for jasperreports

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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}
          }
          }
      
      
      }
      

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

              Created:
              Updated:
              Resolved: