This topic is locked
[SOLVED]

 inline edit failing on some tables

4/13/2010 9:33:01 PM
PHPRunner General questions
G
gawde author

Using 5.2 (5242)
Hello all,

Am hoping someone else has experienced this and can point out the error of my ways.

Am using inline edit and add and it is fine on most tables. However I have a master/child relationship and the inline edit fails on the child table. I receive a msg "Error ocurred>>" under the first column (text box) and it just sits there. If I hover over the error msg (which appears to be a link), I see a momentary red box covering everything on the page to the right and below the error msg. If I escape by clicking the Cancel icon, it returns normally to the list view and does not show the change. Yet the field shows the change has been made if I go back with the normal edit mode. Rather strange.
I've looked at how the tables are linked, etc. and all seems proper.
Any suggestions?
Regards,

Greg

Sergey Kornilov admin 4/13/2010

Greg,
hard to tell what might be wrong without seeing your files.
I recommend to post your application to Demo Account and to open a ticket at http://support.xlinesoft.com sending your application URL.

G
gawde author 4/15/2010

Thanks to the folks at support here's the answer:
this error happens because redirect (in your events) doesn't test for inline edit/add.

Here is the correct code for "After record added"/"After record updated" events on the Events tab:

----------------------------------

if (!$inline)

{

//** Redirect to another page ****

header("Location: pmtodo_list.php");

exit();

}