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

sushobhan.b

Members
  • Posts

    24
  • 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 sushobhan.b

  1. Hi All,

    I am using jrs-rest-java-client in my project.

    i am using jasperclient suthenticate to authenticate my jasperserver.

    JasperserverRestClient client = new JasperserverRestClient(configuration);Session session = client.authenticate(System.getProperty(ReportConstants.REPORT_USER), password)

    while using authenticate its conflicting with jboss resteasy client as few classes are similar , please help how to resolve this.

  2. Hi I am not able to get specific request-id by passing reportURI.

    below is my uri

    /jasperserver/rest_v2/reportExecutions?reportURI="/PID/Size_Details_Report"

    I am getting below error

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><errorDescriptor><errorCode>generic.error.message</errorCode><errorUid>f3c1f18d-e917-4a28-bfcf-12f860c8a5c6</errorUid><message>There was an error on the server. Try again or contact site administrators. (Error UID: f3c1f18d-e917-4a28-bfcf-12f860c8a5c6)</message></errorDescriptor>

    If i use only /reportExecutions, it is listing all running reports, i want specific requst id.

    Please, someone, provide me the solution

  3. Hi , 

    i have below json data

    "sizePrices": [
                {
                    "createUser": "",
                    "createDate": "2019-01-15T04:40:24.478Z",
                    "updateUser": "",
                    "updateDate": "2019-01-15T04:43:50.754Z",
                    "cargoHandoverPrice": 1.66,
                    "sizeCode": "Adult",
                    "sizeNumber": 120,
                    "keySizeScaleCode": "INT"
                },
                {
                    "createUser": "",
                    "createDate": "2019-01-15T04:40:24.478Z",
                    "updateUser": "",
                    "updateDate": "2019-01-15T04:43:50.755Z",
                    "cargoHandoverPrice": 0.00,
                    "sizeCode": "Youth",
                    "sizeNumber": 110,
                    "keySizeScaleCode": "INT"
                }

    i need to print like this below:

    cargo price 1   cargo price 2

    1.66                   0.00

    its only printing first value, any help would be appreciable

  4. Hi All,

    I have a subreport which is populating data using json url.

    for json URL i am using a data adapter and subreport is also sing same.

    Below is my data adaapter file.

    <?xml version="1.0" encoding="UTF-8" ?><jsonDataAdapter class="net.sf.jasperreports.data.json.JsonDataAdapterImpl">    <name>Remote_JSON_Data_Adapter </name>    <dataFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"              xsi:type="httpDataLocation">        <method>GET</method>        <url>http://xxx.com/api/v1/pricelists/</url>        <username>techUser</username>        <password>mDNWqaff7sRmbwqQ8m</password>    </dataFile>    <language>json</language>    <useConnection>true</useConnection>    <timeZone xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"              xmlns:java="http://java.sun.com"              xsi:type="java:java.lang.String">        Asia/Calcutta    </timeZone>    <locale xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"            xmlns:java="http://java.sun.com"            xsi:type="java:java.lang.String">        en_IN    </locale>    <selectExpression></selectExpression></jsonDataAdapter>[/code]

    and in subreport using data dapter property:

    <property name="net.sf.jasperreports.data.adapter"           value="repo:/PID/Remote_JSON_Data_Adapter"/[/code]

    My question is.

    how i can pass a ID to data adapter from subreport like below: 

    so that url can be formed like : http://xxx.com/api/v1/pricelists/{ID}.

    Please help

  5. How to pass username and password along with json datasource  URL in jasper if i am using json datasource in subreport to get some json data using that URL.

    In main report.

    <subreport>

    <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JsonDataSource("http://172.16.94.11:8081/api/v1/colorways/32a71f8d-15d67699834-UFXQ1MzCfpneWo1Vnqn-nQ/", "")]]></dataSourceExpression>

    to access URL we need to give username password,if i pass username password like below directly in browser it works, but through jasperserver it guves HTTP 201 error.

    http://username:pasword@172.16.94.11:8081/api/v1/colorways/32a71f8d-15d67699834-UFXQ1MzCfpneWo1Vnqn-nQ

     

    Please help ASAP

     

     

×
×
  • Create New...