Redirect to export page

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
sangnandar
User
Posts: 980

Redirect to export page

Post by sangnandar »

I need View Page to be redirected to <table>view.php?export=print...

Using this:
Page_Redirecting()
$url = "<table>view.php?export=print...";

is not working, because it loop-redirect to itself.

Any idea how can I do this thing?

Thanks.


mobhar
User
Posts: 11660

Post by mobhar »

Did you mean when you visit the View Page, then you will be redirected to that export page?


arbei
User
Posts: 9286

Post by arbei »

Check $this->Export in the Page_Render Server Event of the view page and redirect it to the export page.

For example:
if (ew_Empty($this->Export)){
$this->Page_Terminate("<Table>view.php?export=print&<Key Field>=" . $this-><Key Field>->CurrentValue);
}


sangnandar
User
Posts: 980

Post by sangnandar »

That should work.
Thanks arbei.


Post Reply