Jump to content
Changes to the Jaspersoft community edition download ×

how to pass List<Long> in Ireport


igreenfi

Recommended Posts

Hi,

i have this query:

{
    "collectionName" : "dayid_instanceid",
    'findQuery' : {
        '_id.day_id' : { '$gte' : $P{start_date_param} ,'$lt' : $P{end_date_param} },
        '_id.instance_id' : { '$in' : $P{instance_id_param} }
    },
    "sort" :
    {
        "_id" : 1
    }

}

the parameters are:

<parameter name="end_date_param" class="java.util.Date"/>
<parameter name="start_date_param" class="java.util.Date"/>
<parameter name="instance_id_param" class="java.util.Collection"/>

when i run the report

I insert to the "instance_id_param" these values: -903099689, -913099689

and i get this:

{
    "collectionName" : "dayid_instanceid",
    'findQuery' : {
        '_id.day_id' : { '$gte' : {'start_date_param':null} ,'$lt' : {'end_date_param':null} },
        '_id.instance_id' : { '$in' : ['-903099689', '-913099689'] }
    },
    "sort" :
    {
        "_id" : 1
    }
}

 

so it take the "instance_id_param" as String not as long.

 

help please.

Izek

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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