David A. Lee
|
Posted: 05/22/2001, 10:22 PM |
|
I want to be able to override the action form for events
Update/Insert/Delete/Cancel.
I have the same form that is called from several places, and I'd like
to have the calling form pass in somehow the form to return to after the
action.
I was considering using a session variable, but I cant find a way
to override the Cancel action. I'm using Perl with Templates.
These two lines show up at the beginning of the FormAction method
my $sActionFileName = "contactRecord.cgi";
if ( $sAction eq "cancel" ) { http_redirect( $sActionFileName ) }
I tried all the events and could not find one that would let
me insert any code between these 2 lines ...
I want to insert something like
my $sActionFileName = GetSessionVar("ReturnTo");
Any ideas anyone ???
--------------------------------------------------
David A. Lee
Dal Enterprises Inc.
dave@calldei.com http://www.calldei.com
|
|
|
CodeCharge
|
Posted: 05/24/2001, 1:08 PM |
|
We will be adding Before Cancel and After Cancel Events in the next release,
scheduled for the beginning of June.
"David A. Lee" <dave@calldei.com> wrote in message
news:9efheq$g2j$1@mail.tankhill.com...
> I want to be able to override the action form for events
> Update/Insert/Delete/Cancel.
> I have the same form that is called from several places, and I'd like
> to have the calling form pass in somehow the form to return to after the
> action.
> I was considering using a session variable, but I cant find a way
> to override the Cancel action. I'm using Perl with Templates.
>
> These two lines show up at the beginning of the FormAction method
>
> my $sActionFileName = "contactRecord.cgi";
>
> if ( $sAction eq "cancel" ) { http_redirect( $sActionFileName ) }
>
>
> I tried all the events and could not find one that would let
> me insert any code between these 2 lines ...
>
> I want to insert something like
>
> my $sActionFileName = GetSessionVar("ReturnTo");
>
> Any ideas anyone ???
>
>
> --------------------------------------------------
> David A. Lee
> Dal Enterprises Inc.
>dave@calldei.com
> http://www.calldei.com
>
>
|
|
|
|