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

asimkin

Members
  • Posts

    196
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by asimkin

  1. Hi,

    after adding an Image element to report, you should be able to use any field from report dataset in image expression. In JRXML it looks like

                <image>
                    <reportElement x="9" y="18" width="50" height="50" uuid="fd0c1fc5-742f-472b-b048-bc48c461a58f"/>
                    <imageExpression><![CDATA[$F{img}]]></imageExpression>
                </image>

    Have you tried it?

    Best regards,
    Andrew

  2. Hi,

    it depenends on your requirements. You mentioned users in question:

    if I login from User A, Department A data should be displayed

    You can use any of the built-in parameters per your scenario.

    Best regards

  3. Hi,

    you can specify your custom function in WEB-INFapplicationContext-semanticLayer.xml to convert varchar to float.

    There is str2int function already defined in the file, within "sqlserverGenerator" bean:

    <entry key="str2int">
                        <value>"cast(" + sqlArgs[0] + " as numeric(10,0))"</value>
    </entry>

     

    You can add your custom one like

    <entry key="str2float">
                        <value>"cast(" + sqlArgs[0] + " as float)"</value>
    </entry>

    then restart the server and use str2float() function in Domain Calculated field

    Best regards,
    Andrew

  4. Hi,

    it seems the issue caused by empty datasource of the main report.

    I was able to build a report in Jaspersoft Studio that returns required data, please find attached JRXML file.

    I created XML data adapter using provided XML file, and use it as the main report datasource:

    <queryString language="xPath">
    <![CDATA[/]]>
    </queryString>
     

    The Table component has the following JSDatasource Expression:

    <dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("/addressbook/person/name")]]></dataSourceExpression>[/code]

    Also, find attached printscreen of the report output.

    Hope, this helps.

    Best regards,
    Andrew

  5. Hi,

    iReport uses JasperReports Library to compile, fill and export reports. JasperReports Library is a Java Library that offers an interface to the JasperReports Library reporting engine. You can use the library in your application.

    Please review the article below to see how it works:

    http://community.jaspersoft.com/wiki/getting-started-jasperreports-library
    http://community.jaspersoft.com/wiki/jasperreports-library-tutorial

    Best regards,
    Andrew

×
×
  • Create New...