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

sebj

Members
  • Posts

    6
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Entry Comments posted by sebj

  1. Great, but how to change parameters for the URL of the JSON File adapter ?

    For exemple, how to call report with diferents ID parameter with jaspersoft server REST API ? :

    Report one : /jasperserver/rest_v2/reports/reports/MY_REPORT.PDF?ID=ONE
    Report two : /jasperserver/rest_v2/reports/reports/MY_REPORT.PDF?ID=TWO

    For calling JSON File adapter with this "ID" parameter :

    One : JSON_File_adapter_base_remote_URL?ID=ONE
    Two : JSON_File_adapter_base_remote_URL?ID=TWO

  2. Hy, and instead inject in a Table componant (jr:table),

    it's possible to inject datas in a subReport ?

     

    As exemple with Table and DataSetRun + DataSourceExpression (is working) :

                    <jr:table>                    <datasetRun subDataset="Dataset1">                        <dataSourceExpression><![CDATA[((com.jaspersoft.webservice.data.query.IWSDataSource)$P{REPORT_DATA_SOURCE}).clone("results", $P{SubFieldsMap})]]></dataSourceExpression>

     

    As wanted for call, a subreport for each node :

                <subreport>                <reportElement/>                <dataSourceExpression><![CDATA[((com.jaspersoft.webservice.data.query.IWSDataSource)$P{REPORT_DATA_SOURCE}).clone("@.results", $P{SubFieldsMap})]]></dataSourceExpression>                <subreportExpression><![CDATA["testsub_sub.jasper"]]></subreportExpression>            </subreport>

    With a JSON like :

    [{"id": 123,"result": [{   "symbol": "S_A_1"   },{   "symbol": "S_A_2"   }]},{"id": 456,"result": [{   "symbol": "S_B_1"   },{   "symbol": "S_B_2"   }]}]

    For first subreport call, it will use array S_A_1, and S_A_2
    For second subreport call, it will use array S_B_1, and S_B_2

     

×
×
  • Create New...