Gossamer Forum
Home : Products : DBMan : Customization :

Re: [Watts] Multipage Mod

Quote Reply
Re: [Watts] Multipage Mod In reply to
Hi Watts,

Found your Multipage Mod and it's just the ticket. I have adapted it to make a 7 page form. Everything is okay except that when adding or modifying a record it jumps from page 1 to 2, skips 3, jumps to 4, skips 5, jumps to 6, then to page 7.

As far as I can see this is what is happening:

Add record: Goes to page 1. The if ($in{'add_form'}) routine under page one then sets Page Status to 2 and you then proceed to modify_form from there on. Provided Meta tag for Page Status is set to 2 under the html_add_success subroutine then you do indeed go to page 2.

I have added to the if routines under html_modify_success for pages 1 through 7, in each case setting Page Status to next page

e.g.: if ($in{'PageStatus'} eq "2") {print qq|
<meta http-equiv = refresh content = "0; URL=$db_script_link_url&modify_form=1&PageStatus=3&ID=$in{'ID'}">
|;}

....

if ($in{'PageStatus'} eq "6") {print qq|
<meta http-equiv = refresh content = "0; URL=$db_script_link_url&modify_form=1&PageStatus=7&ID=$in{'ID'}">
|;}

if ($in{'PageStatus'} eq "7") {print qq|
<meta http-equiv = refresh content = "0; URL=$db_script_link_url&modify_form=1&PageStatus=7&ID=$in{'ID'}">
|;}

if ($in{'PageStatus'} eq "Done") {print qq|
<meta http-equiv = refresh content = "0; URL=$db_script_link_url">
|;}

However, alas Frown it always jumps 2 pages. (If you set Meta tag for Page Status to 3 under the html_add_success subroutine then you go from page 1 - 3 - 5 - 7).

Can you please help me?

My thanks in advance

Andy J
Subject Author Views Date
Thread Multipage Mod jigme 4656 Aug 21, 2002, 1:25 AM
Thread Re: [jigme] Multipage Mod
flymo 4569 Aug 21, 2002, 5:02 AM
Thread Re: [flymo] Multipage Mod
Watts 4589 Aug 21, 2002, 11:15 AM
Thread Re: [Watts] Multipage Mod
Watts 4584 Aug 22, 2002, 7:31 AM
Thread Re: [Watts] Multipage Mod
LoisC 4591 Aug 22, 2002, 11:59 PM
Thread Re: [LoisC] Multipage Mod
Watts 4528 Sep 4, 2002, 3:13 PM
Thread Re: [Watts] Multipage Mod
andyJ 4352 Nov 20, 2002, 2:12 PM
Thread Re: [andyJ] Multipage Mod
Watts 4326 Nov 22, 2002, 3:33 PM
Post Re: [Watts] Multipage Mod
andyJ 4314 Nov 22, 2002, 3:41 PM
Thread Re: [Watts] Multipage Mod
Watts 4308 Nov 22, 2002, 3:50 PM
Thread Re: [Watts] Multipage Mod
Watts 4298 Nov 24, 2002, 12:40 PM
Post Re: [Watts] Multipage Mod
andyJ 4269 Nov 25, 2002, 12:42 PM