File Upload widget - File name goes away

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
kulkabhijeet
New User
Posts: 10
Joined: Wed May 01, 2019 3:35 pm
First Name: Abhijeet
Last Name: Kulkarni
Company Name: Prime Therapeutics
Contact:

File Upload widget - File name goes away

Post 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
2020-10-15_9-11-14.png (6.03 KiB) Viewed 1094 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
Scott Klement
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

Post by Scott Klement »

What do you mean by the "process key"?
kulkabhijeet
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

Post 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
Scott Klement
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

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests