I have a series of cascading drop downs that are loaded by Ajax calls and java script. These work just fine, but when the user presses OK, control is returned to the RPG in order to validate some data on the screen. If there are errors, the screen (tab panel) is returned and the drop downs are reinitialized to their original state, blank.
Any way of keeping this from happening other than the brute force method of writing the data to a variable, and then rewriting it when the screen is redisplayed?
Thanks,
Mark.
Saving Drop Down Data
-
- Experienced User
- Posts: 140
- Joined: Wed Sep 14, 2016 2:58 pm
- First Name: Mark
- Last Name: Walter
- Company Name: Paragon Consulting Services
- 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: Saving Drop Down Data
If you write the display with EXFMT or WRITE, it will completely delete and re-draw everything on the screen.
If you want to avoid that, you can use Ajax requests.
You can also set the value property of the dropdown to whatever you want to be displayed so that its set to that when the screen reloads.
If you want to avoid that, you can use Ajax requests.
You can also set the value property of the dropdown to whatever you want to be displayed so that its set to that when the screen reloads.
-
- Experienced User
- Posts: 140
- Joined: Wed Sep 14, 2016 2:58 pm
- First Name: Mark
- Last Name: Walter
- Company Name: Paragon Consulting Services
- Contact:
Re: Saving Drop Down Data
Thanks, Scott. Didn't even think of that.
Who is online
Users browsing this forum: No registered users and 0 guests