Copy link to clipboard
Copied
on a button click how to handle two event one to call Httpservice to check session is expired and after this call download file if session is valid
Copy link to clipboard
Copied
Keep the separate events separate. Have whatever event handler you use to handle the click deal with checking the http service. Assuming that processing utilizes yet another event listener for the http service confirmation, then use that to trigger the file download in another event handler function.
Copy link to clipboard
Copied
After httpservice call reultevent can't trigger filedownload since File Reference
download needs separate button click.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now