JasperReports: CONCATENATE function not found

后端 未结 1 2017
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-02 00:19

I\'m developing some reports with Jaspersoft Studio.
I have a web app that should accept REST queries, and turn them into compiled reports.
So I have some

1条回答
  •  青春惊慌失措
    2020-12-02 00:57

    You should also add jasperreports-functions-5.2.0.jar to your classpath.

    This library contains net.sf.jasperreports.functions.standard.TextFunctions class with CONCATENATE function.

    You can find this artifact at http://jaspersoft.artifactoryonline.com/jaspersoft/jr-ce-releases Maven repository.

    The snippet from my test pom.xml:

    
        
            jr-ce-releases
            http://jaspersoft.artifactoryonline.com/jaspersoft/jr-ce-releases
        
    
    
    
        
            net.sf.jasperreports
            jasperreports
            5.2.0
        
    
        
            org.codehaus.groovy
            groovy-all
            2.0.1
        
        
            net.sf.jasperreports
            jasperreports-functions
            5.2.0
        
        
            joda-time
            joda-time
            2.1
        
    
    

    The net.sf.jasperreports.jasperreports-functions:5.2.0 artifact depends on joda-time.joda-time:2.1 artifact - you should also add to classpath the joda-time-2.1.jar


    Notes:

    You can find more information in Custom Functions in Report Expressions article

    0 讨论(0)
提交回复
热议问题