Posted: 12 Oct 2017 4:01 EDT Last activity: 16 Oct 2018 12:03 EDT
SendFile() API refreshing the section after the call
On Click of Button we are calling refresh section with activity to download the zip file.In this activity we have invoked java step with SendFile API to download the zip file. Once Zip file download popup displays, section is refreshing again so that our activity called again (twice) . Could you please suggest to avoid to refresh the section/avoid to call activity twice.
Thanks for your help in advance.
***Updated by moderator: Lochan to add Categories***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Any specific reason to refresh the section while downloadin the file ? Also downloading the file should not refresh the parent section unless you configured it somewhere. Just execute the activity for downloading the file and see if this helps to resolve the issue
Thank you for posting your query in the PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s available on the top right pane of this page. Once created, please reply back here with the URL of the new post.
You may also refer this discussion link as a reference in the new thread.
Use activity with sendfile() in Refresh Harness instead of refresh section.
If you are using PRPC versions of 6.x, where refresh harness is not available, you need to use local change.
Local change is to create a wrapper activity.
In the wrapper activity, Step1: Check flag for execute original activity. If flag is true jump to the step (Step5) to call original activity. Step2: Write a java step to have a dummy sendfile() statement. Step3: Set property on step page which will allows us to call original activity. Step4: A dummy step to exit activity Step 5: Call to original Activity.