CodeChargenewbie
Posts: 114
|
| Posted: 11/07/2007, 7:56 AM |
|
Normally, if you need to redirect to another page, you might insert the name of the page Return page, under Data Properties. For a submit request, it's the same thing. The thing is I'm doing a custom submit update on a button (in the custom code section, not in properties), and I had to set updateallowed = false. And now the page is not redirecting to the page I explicity specified. I tried setting $Redirect to the page I want in Before Update Event, but that did nothing. For some reason, setting updateallowed = false screws up the redirecting. Any ideas?
Is there a way I can use the php function, header, to redirect, within my custom code?
I also found $HTMLFormAction, besides $Redirect, but I don't know where to manipulate these variables in the custom code; what event is applicable to these variables? I suppose I could always hard code the page in html, whchi works, but there must be a way to do this in php, iF(!) you add custom code to a submit button.
|
 |
 |
DonB
|
| Posted: 11/11/2007, 7:43 AM |
|
Any page or control 'return page' specification will override a value you
set for $Redirect in the event code. You need to remove the return page
values. This seems like a bad behavior was chosen for CCS by it's
developers, but that's how it works.
--
DonB
http://ccswiki.gotodon.net
"CodeChargenewbie" <CodeChargenewbie@forum.codecharge> wrote in message
news:24731e0472e821@news.codecharge.com...
> Normally, if you need to redirect to another page, you might insert the
name of
> the page Return page, under Data Properties. For a submit request, it's
the
> same thing. The thing is I'm doing a custom submit update on a button (in
the
> custom code section, not in properties), and I had to set updateallowed =
false.
> And now the page is not redirecting to the page I explicity specified. I
tried
> setting $Redirect to the page I want in Before Update Event, but that did
> nothing. Any ideas?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|