davep
Posts: 41
|
| Posted: 03/29/2010, 8:04 AM |
|
I have CCS4 application that's been working for quite awhile, but I just added new functionality for which I'm getting some negative feedback. The new operation is an imagelink that calls a popup. The popup consists of a single memo field. The popup has add, delete, submit and cancel buttons. It appears that there is a problem where users enter comment text and hit the Add button, but when they go back, the comment is not there. I've not been able to duplicate this, but multiple endusers have complained about it, so I have to believe that there's something going on.
Any ideas?
|
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 03/29/2010, 11:04 AM |
|
davep
If any of these users are power users maybe you can have them create a video of the problem in action (they could use camstudio.org). Just a suggestion.
|
 |
 |
davep
Posts: 41
|
| Posted: 03/29/2010, 4:26 PM |
|
Thanks for the suggestion, but I think I'm making some progress.
What happened is that somebody told me that had the problem only when they used Chrome. So, I went and tested using Chrome, and it seemed to work, but then sometimes didn't. This is obviously good, because at least I can duplicate something.
The times when the record doesn't add seem to be fairly random, but I tried over and over on some records and could never get an entry to stick. So, I removed the window.close() from the Insert_Button. When I did this, it seemed to work on a record that had previously shown the problem. Of course, when you do it this way, you have to make the entry and then the popup goes into edit mode and the Update_Button is shown, so you have to click again to get the popup to close.
Does this make any sense? Is there some better way so that you don't have to click twice to add every entry?
Thanks,
Dave
|
 |
 |
andy
Posts: 183
|
| Posted: 03/30/2010, 1:07 AM |
|
May be it's because the calling page has not refreshed because you have launched a separate popup page and then closed it?
How about dispensing with the popup? Then return the user from your normal page (what was the popup window) to the calling page. This will ensure the page is refreshed.
Not sure about modal popup window, but may be this will force the calling page to refresh if that is the problem?
Just some thoughts...
_________________
Andy
RAD tools for rich UI controls:
http://www.koolphptools.com |
 |
 |
davep
Posts: 41
|
| Posted: 03/30/2010, 2:42 PM |
|
Thanks for the thought Andy, but maybe I've misrepresented the situation a bit. What I have is an interface that works fine and saves all the records in the main page without difficulty. On that main page, there are a number of image links that call popups. Those popups are supposed to enable the entry of notes pertaining to the item on the main page. They each consists of a single memo field that is supposed to be written to a different table than that configured as the datasource for the main page. I have the popup configured with the correct table, and sometimes it writes, but at other times it doesn't.
Since it seems to always work if done in two steps, I'm guessing that the issue has something to do with the window.close() on the client side taking effect before the form is actually submitted and the validation occurs on the server. Of course, I'm already getting complaints because now everyone has to click Add to insert the records, and then click Close to close the window. The same is true if they want to make changes -- they have to click Submit and then Close.
It sure would be nice if I could get the form submitted and the popup window closed with one click. Does anybody have any ideas?
Thanks
|
 |
 |
damian
Posts: 838
|
| Posted: 03/30/2010, 8:48 PM |
|
click image to get popup...
complete popup and hit submit
redirect to another page that has an onload event that closes the window....
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
davep
Posts: 41
|
| Posted: 04/01/2010, 7:26 AM |
|
Damian,
Not the most elegant solution, but I think that worked.
Thanks.
|
 |
 |
damian
Posts: 838
|
| Posted: 04/01/2010, 3:24 PM |
|
:) ive never been very elegant...
you can at least implement this and as and when you come across another solution you can "fix" this one up :)
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
|