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

abhibhagia

Members
  • Posts

    2
  • 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 abhibhagia

  1. I want to create time series chart usinf xml data source ...Following is the xml file

    /measCollecFile/measData/measInfo -- main data source xpath

    subDataSet :- /measInfo/measValue/r  takes parameter(p) as user input

    Filter for subDataset:- value of p attribute in (<r p="">22</r> ) == user input

    Currently i am using subDataset for the time series chart shown in detail band.

    As aresult, i get 3 charts for each record. And if a put it in summary band i get only one chart with value plotted only for the last record....

    How can i use this value of r element (22 in above example) in time series chart as value???

    or Otherwise tell me the other way of creating the chart or time series chart with value of r element being plotted on the y-axis and endTime in (<granPeriod duration="PT5S" endTime="2013-06-14T02:15:04.160+05:30"/>) being plotted on x-axis..

    <measCollecFile>
        <fileHeader fileFormatVersion="32">
            <measCollec beginTime="2013-06-14T02:15:00.000+05:30"/>
        </fileHeader>
        <measData>
            <managedElement/>
            <measInfo>
                <job jobId="Server1"/>
                <granPeriod duration="PT5S" endTime="2013-06-14T02:15:04.160+05:30"/>
                <repPeriod duration="PT5S"/>
                <measType p="1">CPU_UTIL_SYSTEM</measType>
                <measType p="2">CPU_UTIL_USER</measType>
                <measType p="3">IDLE_PROCESSOR_THREADS</measType>
                <measValue measObjLdn="">
                    <r p="1">10.18</r>
                    <r p="2">3.19</r>
                    <r p="3">0.0</r>
                </measValue>
            </measInfo>
            <measInfo>
                <job jobId="Server1"/>
                <granPeriod duration="PT5S" endTime="2014-06-14T02:15:09.162+05:30"/>
                <repPeriod duration="PT5S"/>
                <measType p="1">CPU_UTIL_SYSTEM</measType>
                <measType p="2">CPU_UTIL_USER</measType>
                <measType p="3">IDLE_PROCESSOR_THREADS</measType>
                <measValue measObjLdn="">
                    <r p="1">6.49</r>
                    <r p="2">5.49</r>
                    <r p="3">0.0</r>
                </measValue>
            </measInfo>
            <measInfo>
                <job jobId="Server1"/>
                <granPeriod duration="PT5S" endTime="2013-06-14T02:18:14.162+05:30"/>
                <repPeriod duration="PT5S"/>
                <measType p="1">CPU_UTIL_SYSTEM</measType>
                <measType p="2">CPU_UTIL_USER</measType>
                <measType p="3">IDLE_PROCESSOR_THREADS</measType>
                <measValue measObjLdn="">
                    <r p="1">2.79</r>
                    <r p="2">2.39</r>
                    <r p="3">0.0</r>
                </measValue>
           </measInfo>

     </measData>
        <fileFooter>
            <measCollec endTime="2013-06-14T02:20:00.000+05:30"/>
        </fileFooter>
    </measCollecFile>

  2. log4j:WARN No appenders could be found for logger (net.sf.jasperreports.engine.xml.JRXmlDigesterFactory).
    log4j:WARN Please initialize the log4j system properly.
    net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
    1. The method subDataSource(String) is undefined for the type JRDataSource
                    value = ((net.sf.jasperreports.engine.JRDataSource)parameter_REPORT_DATA_SOURCE.getValue()).subDataSource("/measInfo/measValue"); //$JR_EXPR_ID=9$
                                                                                                                <----------->
    2. The method subDataSource(String) is undefined for the type JRDataSource
                    value = ((net.sf.jasperreports.engine.JRDataSource)parameter_REPORT_DATA_SOURCE.getValue()).subDataSource("/measInfo/measValue"); //$JR_EXPR_ID=9$
                                                                                                                <----------->
    3. The method subDataSource(String) is undefined for the type JRDataSource
                    value = ((net.sf.jasperreports.engine.JRDataSource)parameter_REPORT_DATA_SOURCE.getValue()).subDataSource("/measInfo/measValue"); //$JR_EXPR_ID=9$
                                                                                                                <----------->
    3 errors

        at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:204)
        at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:241)
        at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:501)
        at DummyReport.main(DummyReport.java:28)
     

     

    PFA JRXML file

×
×
  • Create New...