Re: Giving out error pages

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12515
interpreted = N
texte = >I have had Wecat for only two weeks and perhps I am missing something. > >One thing that I notice is that there is little ability to give out error >pages when there is data missing or not inputed correctly. The [required] >field does that but the page that comes up, doesn't show us much. > >Is there plans in the next version to have error pages? Or is there a way >to do it now, and I am missing it because of my lack of knowledge? > >Thanks, >KevWhat type of errors?If it as simple as someone not filing in a field then you do it yourself using some of the code found in the PCS/Starnine examples. Like on a page you would append or replace try like this example[showif [form.firm]=]
You must enter a Rep Firm Name
Use your Browser back button to return to the previous page.
[/showif][showif [form.contact]=]
You must enter a Contact Name
Use your Browser back button to return to the previous page.
[/showif][showif [form.tradech]=]
You must click on one of the Trade Channel buttons
Use your Browser back button to return to the previous page.
[/showif][showif [form.rtype]=]
You must click on one of the Job Function
Use your Browser back button to return to the previous page.
[/showif][showif [math]errorCount[/math]=0]
This New Rep Data is now in the Data Base

[append /webcatalog/rep.db]sku=[form.sku]&firm=[URL][form.firm][/URL]&contact=[URL][ form.contact][/URL]&addr1=[URL][form.addr1][/URL]&addr2=[URL][form.addr2][/U RL]&phnum=[URL][form.phnum][/URL]&faxnum=[URL][form.faxnum][/URL]&em=[form.e m]&hmpage=[form.hmpage]&tradech=[form.tradech]&rtype=[form.rtype][/append] [closedatabase /webcatalog/rep.db] [/showif]I have a simple text doc that contains all kinds of code snips that I cut and paste and edit into any new stuff I am making so I don't have to re-type all the time. The above missing field stuff is an example if somebody says doing it this way is to much to type everytime :)=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== Associated Messages, from the most recent to the oldest:

    
  1. Re: Giving out error pages (Marty Schmid 1997)
  2. Re: Giving out error pages (grichter@panavise.com (Gary Richter) 1997)
  3. Giving out error pages (Kevin Furuta 1997)
>I have had Wecat for only two weeks and perhps I am missing something. > >One thing that I notice is that there is little ability to give out error >pages when there is data missing or not inputed correctly. The [required] >field does that but the page that comes up, doesn't show us much. > >Is there plans in the next version to have error pages? Or is there a way >to do it now, and I am missing it because of my lack of knowledge? > >Thanks, >KevWhat type of errors?If it as simple as someone not filing in a field then you do it yourself using some of the code found in the PCS/Starnine examples. Like on a page you would append or replace try like this example[math]errorCount=0[/math]>[showif [form.firm]=]
You must enter a Rep Firm Name
Use your Browser back button to return to the previous page.
[math]errorCount=errorCount+1[/math]> [/showif][showif [form.contact]=]
You must enter a Contact Name
Use your Browser back button to return to the previous page.
[math]errorCount=errorCount+1[/math]> [/showif][showif [form.tradech]=]
You must click on one of the Trade Channel buttons
Use your Browser back button to return to the previous page.
[math]errorCount=errorCount+1[/math]> [/showif][showif [form.rtype]=]
You must click on one of the Job Function
Use your Browser back button to return to the previous page.
[math]errorCount=errorCount+1[/math]> [/showif][showif [math]errorCount[/math]=0]
This New Rep Data is now in the Data Base

[append /webcatalog/rep.db]sku=[form.sku]&firm=[url][form.firm][/URL]&contact=[url][ form.contact][/URL]&addr1=[url][form.addr1][/URL]&addr2=[url][form.addr2][/U RL]&phnum=[url][form.phnum][/URL]&faxnum=[url][form.faxnum][/URL]&em=[form.e m]&hmpage=[form.hmpage]&tradech=[form.tradech]&rtype=[form.rtype][/append] [closedatabase /webcatalog/rep.db] [/showif]I have a simple text doc that contains all kinds of code snips that I cut and paste and edit into any new stuff I am making so I don't have to re-type all the time. The above missing field stuff is an example if somebody says doing it this way is to much to type everytime :)=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== grichter@panavise.com (Gary Richter)

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

UPS Shipping (1999) Trouble with Showif and Search (1998) Where has WebDNA shown up in your life? (2003) Wonderin' whats the way (1998) Robots fill event log (1997) WebCatalog NT beta 18 problem (1997) SEARCH Peram (2003) Document Contains No Data! (1997) Pesky &s (2002) Mystery authentication (1997) Not really WebCat (1997) lazy programming (2000) WebCatalog not running after upgrade (2000) Help needed! (SIMS recommendation) (1998) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) shipCost -vs- shippingtotal ? (2000) SIMS setup (1998) NT version and O'reily's WebSite (1997) NewCart+Search with one click ? (1997) Scientific Notation Problem (2001)