Matching objectid to a list


I am using multi-select input control in my report. The parameter $P{select} is of type java.util.Collection and accepts a list of ids.
The ids that I have are of the type org.bson.types.ObjectId.
"_id": { "$oid": "0d59dcfcd9342a3fc72acadf" }
When I run the report by passing list of ids it returns a blank report. It used to work fine for earlier data when the ids where of type 'String'.
The query in Mongodb that I am using to match ids is _id:{$in:$P{select}}. And in $P{select} I am just passing id as 0d59dcfcd9342a3fc72acadf
What am I doing wrong here?
730.saurabh's picture
Joined: Dec 2 2013 - 4:15am
Last seen: 8 years 11 months ago

0 Answers:

No answers yet