Thanks Guys. I tried both of your suggestions. First I added the alert. The event IS being fired. I moved the code to onblur. The event fired; the code still did not work. I then created a new format with 2 date widgets and applied the code from Dieter. It worked fine. I deleted the date widgets from my existing format and recreated them and added the code from Dieter. It still does not work in my format.
Here is some info that may or may not be useful. Both formats have overlay set to "true". The screen is output as follows in the rpg program:
dow not Exitpgm;
write emplistc1;
exfmt dyncalc1 ;
read emplistc1;
(Both formats contain grids and input is possible via both. That is why I am using that sequence of operations. I recently discovered I could include more than one grid in a format, but Profound would not let me copy the other grid into the main format, so I left them separate.)
Here is the full Profound view:
Date Range - auto populate "to" date with "from" date
-
- Experienced User
- Posts: 147
- Joined: Tue Jun 17, 2014 4:00 pm
- First Name: Patti
- Last Name: Bednarz
- Company Name: McGard
- State / Province: New York
- Country: United States
- Contact:
Re: Date Range - auto populate "to" date with "from" date
- Attachments
-
- Capture.PNG (58.47 KiB) Viewed 1460 times
-
- 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: Date Range - auto populate "to" date with "from" date
While running the program, please press Ctrl-F9. This will download a file to your PC named "json.txt". If you wouldn't mind uploading that file here, that would allow me to run your screen, and then I can poke around and maybe see why it's not working.
-
- Experienced User
- Posts: 147
- Joined: Tue Jun 17, 2014 4:00 pm
- First Name: Patti
- Last Name: Bednarz
- Company Name: McGard
- State / Province: New York
- Country: United States
- Contact:
Re: Date Range - auto populate "to" date with "from" date
Scott,
It isn't downloading anything. I am using Internet Explorer. Do I need to change any settings so it will do this? Also, at what point do I press Ctrl-F9 and do I continue to hold down until I exit the program?
Thank you, Patti
It isn't downloading anything. I am using Internet Explorer. Do I need to change any settings so it will do this? Also, at what point do I press Ctrl-F9 and do I continue to hold down until I exit the program?
Thank you, Patti
-
- Experienced User
- Posts: 147
- Joined: Tue Jun 17, 2014 4:00 pm
- First Name: Patti
- Last Name: Bednarz
- Company Name: McGard
- State / Province: New York
- Country: United States
- Contact:
Re: Date Range - auto populate "to" date with "from" date
I just recreated the dates one more time and cut/pasted the code from your post. It IS working now! Thank you everyone for the input! Have a great weekend! Patti
-
- 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: Date Range - auto populate "to" date with "from" date
No need to hold it down. As soon as you press Ctrl-F9, it should ask you to download a file. Not sure why this wouldn't work...
To be clear, you must do this while running your program. (Not in the Visual Designer.)
To be clear, you must do this while running your program. (Not in the Visual Designer.)
Who is online
Users browsing this forum: No registered users and 1 guest