CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Navigation from one grid to three record pages

Print topic Send  topic

Author Message
nagu
Posted: 05/14/2002, 11:18 AM

Hi,

I have three sets of Grid->Record pages
AG <=> AR
BG <=> BR
CG <=> CR

I have one grid where three fields point to all the three record pages.

AG->AR
AG->BR
AG->CR

When I hit cancel on any of the record pages, I am taken back to that page's Grid. For example, if I went to BR from AG, when I hit cancel, I am put in BG. How do I make it go to AG page. I tried setting sActionFileName variable in the cancel event (parsed from GetParam("HTTP_REFERER")) but it is not working.

I am using Perl and template.

thanks,

Nagu
Nicole
Posted: 05/15/2002, 2:33 AM

Nagu,
I suppose you should pass page name from AG form to record form through lets say session variable. Create it in AG form Open event. To access page name use:
ToURL( $ENV{"SCRIPT_NAME"} )

In before cancel event of record form se session var value to overwrite sActionFileName var and then clear session.
nagu
Posted: 05/16/2002, 11:46 AM

Nicole,

The ENV{SCRIPT_NAME"} didnt work for me. I tried setting the sFileName in the very top(I did it in the code - there was a Open Event at the very top).


Now there is a twist. Setting the name in the redirect - redirects like a fresh page.

I have a setup that if go to grid page directly, it lists 10k entries. So I use a search and go to the grid page with, let's say 10 entries. Then I go to page C Record. On hitting cancel, I get back to the grid page with 10k entries. So the action I need is equivalent of hitting the back button on the browser. How do I do it. I would prefer that in all the pages - on hitting cancel, go back to previous page.

thanks,

Nagu
nagu
Posted: 05/20/2002, 6:13 AM

Nicole,

The ENV{SCRIPT_NAME"} didnt work for me. I tried setting the sFileName in the very top(I did it in the code - there was a Open Event at the very top).


Now there is a twist. Setting the name in the redirect - redirects like a fresh page.

I have a setup that if go to grid page directly, it lists 10k entries. So I use a search and go to the grid page with, let's say 10 entries. Then I go to page C Record. On hitting cancel, I get back to the grid page with 10k entries. So the action I need is equivalent of hitting the back button on the browser. How do I do it. I would prefer that in all the pages - on hitting cancel, go back to previous page.

thanks,

Nagu

   


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

Web Database

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.