Page 1 of 1
File Upload widget - File name goes away
Posted: Thu Oct 15, 2020 10:14 am
by kulkabhijeet
Hello
I am having a issue. We have a file upload widget in one of our screens
- 2020-10-15_9-11-14.png (6.03 KiB) Viewed 1095 times
When the process key is pressed here, the validation starts for fields on the screen.
Lets say if the email validation fails, the screen comes back to show the error, but the selected file vanishes.
THis happens each time and they would need to select the file each time there is a error
Re: File Upload widget - File name goes away
Posted: Thu Oct 15, 2020 11:32 am
by Scott Klement
What do you mean by the "process key"?
Re: File Upload widget - File name goes away
Posted: Fri Oct 16, 2020 2:55 pm
by kulkabhijeet
Ohh By process key, I mean the submit button we have coded for our screen. It takes the control back to the program to validate the screen inputs
Re: File Upload widget - File name goes away
Posted: Fri Oct 16, 2020 3:11 pm
by Scott Klement
I see, so you have a shortcut key assigned to a button or something that submits the screen.
Whenever you submit the screen to the server, and the server comes back and does EXFMT (in RPG) or display.format.execute (Node.js) or the equivalent write/read... it will completely wipe out the display and re-draw it. Remember, too, that you can display a different screen each time you do an exfmt/execute, so it makes sense when you think about it, it's not just "continuing" the screen that's up there, it's wiping it out and completely redrawing it.
So, yes, the files you have put as "pending upload" will be gone. When you submitted the screen before, it already uploaded them, so now you are starting a whole new session.