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:
Setting up shop (1997)
[showif],[refferer],[include] in errormessages.db (2002)
[WebDNA] [middle] << assistance need (2016)
founditems and setheader (2000)
BreadCrumb Trails (2001)
Multiple prices (1997)
Dummy Form Variables Needed (2000)
[shownext] support - MacOS (1997)
E-mailer error codes (1997)
HTML Email and Images (2004)
Setting Cart value (2000)
WebCat2b15MacPlugin - [protect] (1997)
OUTSIDE LINKS TO SHOW SHOPPING CART????????? (1998)
About WebCatalog and iTools 7 (2003)
.hdr files (2004)
Search results templates (1996)
re:check boxes (1997)
Fedora Core 6 (2007)
Stinkin' [Referrer] (1998)
Sequential Code Logic (2003)