refreshing [message #869] |
Tue, 12 June 2007 11:51 |
interop
Messages: 45 Registered: October 2006
|
Member |
|
|
My multi2 screens with new (add2) and delete (del1) do not refresh after adding or deleting an entry. In order to see the changes I must click 'reset'.
do you know what could cause this?
version 1.24, php5, mysql5
|
|
|
Re: refreshing [message #870 is a reply to message #869] |
Tue, 12 June 2007 19:52 |
AJM
Messages: 2363 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
That is very strange. I have just tried a multi2 form (Maintain Menu Contents) using version 1.24 as well as the upcoming 1.25, and I cannot reproduce this problem at all. Are you sure that you have replaced all the older scripts in the INCLUDES folder?
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|
|
Re: refreshing [message #874 is a reply to message #873] |
Wed, 13 June 2007 10:20 |
AJM
Messages: 2363 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I cannot reproduce this fault. Whenever I leave a Multi2 form by pressing a navigation button that form will *always* refresh its data from the database when it regains control irrespective of what happens in the child form.
The only time that the form will not refresh itself is if a popup button is pressed in the data area. Note that although both navigation buttons and popup buttons activate another form, their purpose is different, and returning from a popup does not cause a refresh.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|
Re: refreshing [message #877 is a reply to message #876] |
Wed, 13 June 2007 11:18 |
AJM
Messages: 2363 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
Now I see the problem. At line 262 in 'std.multi2.inc' you should see the following code:
// only read INNER if OUTER is not empty
if (count($outer_data) > 0) {
if (!empty($return_from) AND !empty($return_action)) {
....
} else {
....
This should be changed to the following:
// only read INNER if OUTER is not empty
if (count($outer_data) > 0) {
if (!empty($return_from) AND !empty($popup_object)) {
....
} else {
....
This fix has already been incorporated into the next release.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|
|