Hello
I am having a issue. We have a file upload widget in one of our screens
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
File Upload widget - File name goes away
-
- New User
- Posts: 10
- Joined: Wed May 01, 2019 3:35 pm
- First Name: Abhijeet
- Last Name: Kulkarni
- Company Name: Prime Therapeutics
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: File Upload widget - File name goes away
What do you mean by the "process key"?
-
- New User
- Posts: 10
- Joined: Wed May 01, 2019 3:35 pm
- First Name: Abhijeet
- Last Name: Kulkarni
- Company Name: Prime Therapeutics
- Contact:
Re: File Upload widget - File name goes away
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
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: File Upload widget - File name goes away
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.
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.
Who is online
Users browsing this forum: No registered users and 0 guests