Jump to content
We've recently updated our Privacy Statement, available here ×

Matching objectid to a list


730.saurabh

Recommended Posts

 

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?
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...