CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 ::: Redirect within Before Show Event

Print topic Send  topic

Author Message
klwillis


Posts: 428
Posted: 08/11/2004, 7:40 PM

Is it possible to perform a page redirection within
the Before Show event for a grid?

The following does not work:

global $PROJECTINFO;
global $Redirect;

if ($PROJECTINFO->ds->RecordsCount == 0)
{
$Redirect = "homepage.php";
}


_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
Helmut

Posts: 9
Posted: 08/11/2004, 11:45 PM

instead redirect try this

if ($PROJECTINFO->ds->RecordsCount == 0)
{
header("Location: homepage.php");
}
View profile  Send private message
klw
Posted: 08/12/2004, 8:04 AM

Thankyou.

Works like a charm. :-)

Quote Helmut:
instead redirect try this

if ($PROJECTINFO->ds->RecordsCount == 0)
{
header("Location: homepage.php");
}

:-)

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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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