Dynamic query with mongodb in BIRT [message #1455451] |
Wed, 29 October 2014 07:36  |
Eclipse User |
|
|
|
I have to make a birt report with 1 parameter which should be used in query. The parameter is a string.
I tried to do it in beforeOpen dataset as indicated for sql queries, but it has not worked.
I write in beforeOpen expression dataset:
this.queryText = '{
"findQueryExpr": { "ref": "'+params["ref"].value+'" } ,
"operationType" : "FIND" ,
"collectionName" : "events",
"queryReadPreference" : "secondary" ,
"selectedFields" : [ "ref" , "sts" , "rts" , "c.value" , "c.type" , "c.quality" , "r.value" , "r.type" , "r.quality"]
}';
And the query is throwing on the total number of documents in the collection regardless of the parameters.
It is possible to make mongo query in Birt with parameters?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03846 seconds