cancel
Showing results for 
Search instead for 
Did you mean: 

PDF download from BSP application

Former Member
0 Kudos

hi all,

With the bellow code i am able to download to PDF from BSP application

Issue is when i click on the download button waiting popup window is not disappearing even after PDF displayed.

Please help me to resolve how to stop this waiting popup window.

*

response->delete_header_field( name = 'Cache-Control' ). "#EC NOTEXT

response->delete_header_field( name = 'Expires' ). "#EC NOTEXT

response->delete_header_field( name = 'Pragma' ). "#EC NOTEXT

  • Deactivated because of Note 904314 and Kompression in Kernel

response->set_compression( options = '4' ).

response->set_header_field( name = 'content-type'

value = 'application/pdf' ).

response->set_header_field(

name = 'cache-control'

value = 'max-age=0' ).

response->set_header_field(

name = 'content-disposition'

value = 'attachment; filename=candidate.pdf' ).

l_pdf_len = XSTRLEN( l_pdf_xstring ).

response->set_data( data = l_pdf_xstring

length = l_pdf_len ).

navigation->response_complete( ).

*

Any help on this is highly appreciated.

Thanks,

Ravi

Accepted Solutions (0)

Answers (1)

Answers (1)

raja_thangamani
Active Contributor
0 Kudos

Please look at [this |] and [this|] thread. It might solve your issue.

Raja

Former Member
0 Kudos

Thanks for your inputs

But I need the Wait... Popup message and this should disappear when PDF download completed, please let me know if any other solution on this

Thanks,

raja_thangamani
Active Contributor
0 Kudos

May be you can navigate to another page AFTER the response_complete() method and show the message that 'PDF is downloaded successfully'

or something meanful message. so that it will get a response back from server and 'wait...Processing' message might disappear.

I'm not sure and didnt try..may be you can give it a try and let us know..


navigation->response_complete( ).

navigation->goto_page(....)