C
|
cgphp 6/23/2011 |
Bill B,
|
![]() |
bbarker author 6/23/2011 |
in the "After record added", you have only to insert the following code:
$this->events["AfterAdd"]=true; // After record added
|
C
|
cgphp 6/23/2011 |
Enable firebug and check if something goes wrong before the redirection. |
![]() |
bbarker author 6/23/2011 |
Enable firebug and check if something goes wrong before the redirection.
|
C
|
cgphp 6/23/2011 |
Under "Net" check the response from the server. |
![]() |
Sergey Kornilov admin 6/23/2011 |
What Cristian says is that in Events Editor in PHPRunner you should only the following two lines: header("Location: tblvendors_list.php");
|
![]() |
bbarker author 6/24/2011 |
Is that a regular Add page or you add both master and details on the same page? If latter, redirect in AfterAdd event won't work.
|
![]() |
bbarker author 6/24/2011 |
If I removed the check mark on the ADD Page on this Properties page, would the REDIRECT work then? |
![]() |
Sergey Kornilov admin 6/24/2011 |
Yes, removing 'Add page' checkmark will do the job. |
![]() |
bbarker author 6/24/2011 |
Yes, removing 'Add page' checkmark will do the job. This is a quite logical limitation in fact. If you redirect right after master record is added PHPRunner won't be able to add details records. We'll find another way to make redirects work in one of the updates.
|
![]() |
Sergey Kornilov admin 6/24/2011 |
Just wanted to add - that was one of things we didn't see coming when we added an option to add and edit details on the same page. We will find a workaround. |