PHPRad Classic Initial 2.7.3 Forum

PHPRad Forum => Issues => Topic started by: nofeara on September 18, 2018, 01:47:54 PM

Title: Redirect to After Add (with + this.id) does not work
Post by: nofeara on September 18, 2018, 01:47:54 PM
I am badly needing a fix or a work around for this error

As you can see in the pics below, i am trying to redirect to view the auto generated ID that has been created upon adding my new record, however it prompts out that i don't have that record but i have it. Please help us to make a work around regarding this issue. I am making a transactions table and i need to view the generated ID because i will be using it as value into other table.

(https://i.imgur.com/TA1lKUr.png)

(https://i.imgur.com/ZFQxaAj.png)

(https://i.imgur.com/0wycWkp.png)

(https://i.imgur.com/RE7ctY9.png)

Thanks in advance.
Title: Re: Redirect to After Add (with + this.id) does not work
Post by: Emman on September 18, 2018, 04:03:09 PM
Please use this to redirect to another view page with ID. RedirectToAfterAdd does not support. this.id.

Use
'/user/view/' + response.body

response.body return the newly added ID.
Title: Re: Redirect to After Add (with + this.id) does not work
Post by: nofeara on September 19, 2018, 01:37:41 PM
Please use this to redirect to another view page with ID. RedirectToAfterAdd does not support. this.id.

Use
'/user/view/' + response.body

response.body return the newly added ID.


This works. Thanks :)