Open File - On click of this, pdf file should open via chrome browser
Process File - On click of this, a file should move from one location to other.
I am to achieve the solution, the only issue is, when I click “Open File” button, its opening file multiple times as per the number of times the Form is opening.
please guide me to resolve this issue.
As you instructed, I followed the instructions but on click of “open”, its executing as number of times the form appears as I mentioned earlier. And “Process” is executing only once as irrespective of Form appears(Perfect one).
You are seeing this because forms are persistent. so, I removed the property you have in the conditions and it is working as expected. Please check the attached
I do not want the form to be closed on click of “Open” button, instead I want to open a file.
On click of “Process” button , the form should close and the file should move from source to destination path.
I have tried searching, how to use “Events” action instead of “Submit” action on Open file case, but I am not getting any solution either in Uipath Forum or web search.
Your form is persisting as opening multiple times because the do block gets executed for the form till you close the form or the current form is closed.
Your form is not running more than loop times, it is running in the same do block because the form is not closed. If it closes only then it moves to next iteration. Else the open will execute only when you click it
As per your logic the while loop that you gave executes only when you use close because the form activity ends there and a new loop starts with new form
So either remove the while loop or include a close for your open action as well . because both are not same as what you want
PFA of the updated one which is iterating through a folder to process files. Here, I am not using while loop for demo purpose.
On click of “Open” button, file should open, and Form should not close.
On click of “Process”, file should process, and Form should close.
The issue here is that, On click of “Open”, as number of times the Form is opening those number of times, the “opening file” message is popping out(logging those messages also)
As it is for example, I am using Word document, so even though its entering “open” sequence multiple times, its opened once.
For Business, PDF files are used, and it is opening with chrome browser multiple times.