passing SQL “IN” parameter list in jasperreport

后端 未结 3 1802
予麋鹿
予麋鹿 2020-11-29 12:21

I am working on Jasper Reports and my query uses SQL \'IN\' predicate.

SELECT customer_name AS NAME, 
       id_customer   AS ID 
  FROM customer 
 WHERE cus         


        
相关标签:
3条回答
  • 2020-11-29 12:47

    Jasper Report has a special variable $X for that:

    select * from customer where $X{IN,customer_role,roles}
    

    should work. See here and here.

    0 讨论(0)
  • 2020-11-29 12:48

    To complement @Aaron response, you can configure a list parameter ("roles" in your case) within JasperSoft Studio as follows:

    List parameter

    0 讨论(0)
  • 2020-11-29 12:54

    Jasper Report has a special variable $X for that:

    select * from customer where $X{IN,customer_role,roles}
    
    0 讨论(0)
提交回复
热议问题