CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 redirecting in custom code

Print topic Send  topic

Author Message
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.
View profile  Send private message
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/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.