PDF Download not working first time
I want to download PDF file with @baseclass pyViewAsPDF Activity.
I attached the setting of Activity(see cap1.JPG, cap2.JPG). I have set Open URL in Window as button click Action(see cap3.JPG).
I expected I can download PDF when I click the button. But after I restarted Pega Application, I downloaded 0 byte PDF file first time and I colud download PDF file second time successfully.
How can I download PDF file first time successfully ?