Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to apply parameters to CSV data source


    stasp

    Issue [toc on_off::hide=1]

    A CSV data source is not query language, so parameters cannot be used for filtering the same way they are used in an SQL query.


    Solution

    You can make use of <filterExpression> for data filtering. The expression should be based on fields and variables corresponding to data columns in CSV file.

    For example if you have two columns in a simple CSV datasource file, Name and Value, the following would create a filter based on the Value: 

    $F{Value} > 100
    

    In TIBCO Jaspersoft® Studio the expression can be added in the Filter Expression tab of Dataset and Query Dialog. 

    filterExpression.PNG.6978675a1fd21292aeb246f30a3650e3.PNG

    More details on this can be found in section DATA FILTERS on page 104 of TIBCO JasperReports® Ultimate Guide. The Guide is avaiable in the documentation section.

    filterExpression.PNG.f6d139aa64169eced9ded7042387af35.PNG


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...