Re: Prevent multiple appends with Reload Button
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15505
interpreted = N
texte = >Your code doesn't search for a particular record, that's why it's not>working. When you use [replace], you have to write some *search>parameters* into the [replace] tag so WebCat knows which record you>want to replace. Just specifying a database is not enough.>>Also, don't start your first replace parameter with &, because it's>not needed for the first parameter inside the replace context ... and>you forgot the brackets around your zipcode variable ... :)>>>My code:>>[replace>append=T&db=mcust.db&eqSomeFieldData=XXX]firstname=[firstname]&lastname=[lastnam>e]&company=[company]&building=[building]&suite=[suite]&zipcode=[zipcode]&areacod>e=[areacode]&phone=[phone]&faxareacode=[faxareacode]&emailname=[emailname]&specd>el=[specdel]&custcode=[math]newnum[/math][/replace]>Thanks, Ken.What if I want to search to see the custcode field, to make sure that Ihave a unique custcode?Is it:[replaceappend=T&db=mcust.db&eqcustcodeData=[math]newnum[/math]]And if I want to set up a [showif] or [hideif] context based on whetherthe custcode is already in the database, so that I can increment thecounter, what is the proper way for that?I would like to do the following:[hideif db=mcust.db&eqcustcodeData=[math]newnum[/math] [WriteFile custno&secure=T][math]newnum+1[/math][/WriteFile][/hideif]Larry Orchier
Associated Messages, from the most recent to the oldest:
>Your code doesn't search for a particular record, that's why it's not>working. When you use
[replace], you have to write some *search>parameters* into the
[replace] tag so WebCat knows which record you>want to replace. Just specifying a database is not enough.>>Also, don't start your first replace parameter with &, because it's>not needed for the first parameter inside the replace context ... and>you forgot the brackets around your zipcode variable ... :)>>>My code:>>[replace>append=T&db=mcust.db&eqSomeFieldData=XXX]firstname=[firstname]&lastname=[lastnam>e]&company=[company]&building=[building]&suite=[suite]&zipcode=[zipcode]&areacod>e=[areacode]&phone=[phone]&faxareacode=[faxareacode]&emailname=[emailname]&specd>el=[specdel]&custcode=
[math]newnum[/math][/replace]>Thanks, Ken.What if I want to search to see the custcode field, to make sure that Ihave a unique custcode?Is it:[replaceappend=T&db=mcust.db&eqcustcodeData=
[math]newnum[/math]]And if I want to set up a
[showif] or
[hideif] context based on whetherthe custcode is already in the database, so that I can increment thecounter, what is the proper way for that?I would like to do the following:[hideif db=mcust.db&eqcustcodeData=
[math]newnum[/math] [WriteFile custno&secure=T]
[math]newnum+1[/math][/WriteFile][/hideif]Larry Orchier
Larry Orchier
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:
[listfields] on Mac OS w/WC 3.x (2001)
RE: [WebDNA] sales tax on shipping (2008)
required fields (1999)
WebCatalog can't find database (1997)
Search/sort in URL Was: GuestBook example (1997)
Nested vs conditional (1997)
webcat2b12 CGI -- Date comparisons (1997)
WC2.0 Memory Requirements (1997)
Time for a hard questions. (1997)
International Orders (1998)
Queertrons? (1997)
Help with UPS Shipping (2006)
Number searching/formats (1998)
Email notification to one of multiple vendors ? (1997)
WebCat2b13 Command Reference Doc error (1997)
WebDNA vs SQL ? (2002)
Moment of Thanks (1997)
date formatting question (2001)
Serving images from databases (1998)
OFF TOPIC: Sendmail problem (2003)