Report is not lading from localHost? - iOS SDK

0

Hi ,

 

I am tring to download load pdf file in my demo aplication Document directory. 

Can  

[self.baseRest runReportExecution:@"/public/Samples/Reports/5g.AccountsReport" async:true outputFormat:kJS_CONTENT_TYPE_PDF markupType:JSMarkupTypeFull interactive:false freshData:true saveDataSnapshot:true ignorePagination:false transformerKey:nil pages:@"1" attachmentsPrefix:nil parameters:nil completionBlock:^(JSOperationResult * _Nullable result) {

        self.resultsboje =  (JSReportExecutionResponse *)result.objects.lastObject;

        

        self.resultExportExecutionReponse = (JSExportExecutionResponse *)self.resultsboje.exports.lastObject;

 

        if(self.resultsboje.requestId != nil && self.resultExportExecutionReponse.uuid !=nil){

            [self.baseRest reportExecutionStatusForRequestId:self.resultsboje.requestId completionBlock:^(JSOperationResult * _Nullable result) {

                self.statusofReport = (JSExecutionStatus *)result.objects.lastObject;

                if(self.statusofReport.status == kJS_EXECUTION_STATUS_READY){

                    

          [self.baseRest loadReportOutput:self.resultsboje.requestId exportOutput:self.resultExportExecutionReponse.uuid loadForSaving:true path:                    [self applicationDocumentsDirectory].path

 completionBlock:^(JSOperationResult * _Nullable result) {

                        

                    }];

                }

            

            }];

                    }

    }];

 

 

 

LOGS - 

2019-06-23 15:10:08.566050-0400 JSPSoftPOC[27232:849170] Request finished: http://localhost:8080/jasperserver-pro/rest_v2/serverInfo?

Response: {"build":"20190516_1353","editionName":"Enterprise","dateFormatPattern":"yyyy-MM-dd","edition":"PRO","datetimeFormatPattern":"yyyy-MM-dd'T'HH:mm:ss","version":"7.2.0","features":"AUD ANA MT EXP Fusion AHD DB ","licenseType":"Evaluation","expiration":"2019-08-19T22:59:59"}

2019-06-23 15:10:08.568794-0400 JSPSoftPOC[27232:849170] Request finished: http://localhost:8080/jasperserver-pro/GetEncryptionKey?

Response: (null)

2019-06-23 15:10:08.569379-0400 JSPSoftPOC[27232:849170] BODY: j_password=jasperadmin&j_username=jasperadmin&userLocale=en_US&userTimezone=America/Toronto

2019-06-23 15:10:08.582297-0400 JSPSoftPOC[27232:849170] Request finished: http://localhost:8080/jasperserver-pro/j_spring_security_check

Response: (null)

2019-06-23 15:10:08.582910-0400 JSPSoftPOC[27232:849170] BODY: {"pages":"1","saveDataSnapshot":"true","async":"true","freshData":"true","interactive":"false","outputFormat":"pdf","reportUnitUri":"\/public\/Samples\/Reports\/5g.AccountsReport","markupType":"full"}

2019-06-23 15:10:08.622995-0400 JSPSoftPOC[27232:849170] Request finished: http://localhost:8080/jasperserver-pro/rest_v2/reportExecutions

Response: {"status":"queued","exports":[{"status":"queued","id":"76a3aad9-3b66-4b82-a273-506f85fe6e37"}],"requestId":"99d47a22-d931-4be4-a713-43ff39db7059","reportURI":"\/public\/Samples\/Reports\/5g.AccountsReport"}

2019-06-23 15:10:08.623176-0400 JSPSoftPOC[27232:849170] reportRequestID = <JSOperationResult: 0x6000014ced00>

2019-06-23 15:10:11.295288-0400 JSPSoftPOC[27232:849170] Request finished: http://localhost:8080/jasperserver-pro/rest_v2/reportExecutions/99d47a22...?

Response: {"value":"ready"}

2019-06-23 15:10:16.008192-0400 JSPSoftPOC[27232:849170] Request finished: http://localhost:8080/jasperserver-pro/rest_v2/reportExecutions/99d47a22...

Response: (null)

2019-06-23 15:10:16.008377-0400 JSPSoftPOC[27232:849170] (null)

 

 

Please let me where are i am wrong in code. 

 

mkss30's picture
4
Joined: Jun 13 2019 - 6:44pm
Last seen: 4 months 2 weeks ago

0 Answers:

No answers yet
Feedback