Skip to main content
Topic: Redirect to After Add (with + this.id) does not work (Read 1289 times) previous topic - next topic

Redirect to After Add (with + this.id) does not work

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.









Thanks in advance.
There is always time for everything.

Re: Redirect to After Add (with + this.id) does not work

Reply #1
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.

 

Re: Redirect to After Add (with + this.id) does not work

Reply #2
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 :)
There is always time for everything.