Re: Replace Statement
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13302
interpreted = N
texte = >Can anyone figure out why this is not replacing the record properly?>The 3 variables at the bottom are to show that they are getting the>right information (which they are), but it's not updating my db, its in>the right folder. I can't get it to replace any of the fields period.>>Any suggestions would be grateful. THANK YOU!>[search db=classifieds.db&eqUniqueIdData=[form.uniqueid]]> [founditems]> > [/founditems]>[/search]>[replace>db=classifieds.db&eqUniqueIdData=[form.UniqueId]]Yes=[math]newyes[/math][/repla>ce]Hi Damien,Here's a simplified version of your WebDNA that should work properlyand be faster, too:[replacedb=classifieds.db&equniqueiddata=[form.uniqueid]]Yes=[math][lookupdb=classifieds.db&value=[form.uniqueid]&lookinfield=uniqueid&returnfield=Yes¬found=]+1[/math][/replace]Sincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html
Associated Messages, from the most recent to the oldest:
>Can anyone figure out why this is not replacing the record properly?>The 3 variables at the bottom are to show that they are getting the>right information (which they are), but it's not updating my db, its in>the right folder. I can't get it to replace any of the fields period.>>Any suggestions would be grateful. THANK YOU!>[search db=classifieds.db&eqUniqueIdData=[form.uniqueid]]>
[founditems]> [math]NewYes=[Yes]+1[/math]>> [/founditems]>[/search]>[replace>db=classifieds.db&eqUniqueIdData=[form.UniqueId]]Yes=
[math]newyes[/math][/repla>ce]Hi Damien,Here's a simplified version of your WebDNA that should work properlyand be faster, too:[replacedb=classifieds.db&equniqueiddata=[form.uniqueid]]Yes=
[math][lookupdb=classifieds.db&value=[form.uniqueid]&lookinfield=uniqueid&returnfield=Yes¬found=]+1[/math][/replace]Sincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html
Kenneth Grome
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:
re: Large databases in WebCat (1997)
For those of you not on the WebCatalog Beta... (1997)
[WebDNA] Problem with Cookies in IE and Safari (2009)
Q: old cart serial problem (2000)
[SendMail] from a form? (1998)
WebCat and WebTen 2.0 (1997)
MacAuthorize order data fields WAS:How To question... (1997)
[TaxableTotal] - not working with AOL and IE (1997)
WebCat2b13 Command Reference Doc error (1997)
Help!!!! Purchases not going through! FIXED! (1997)
Backwards list behavior ... (1997)
Search Engine questions ... (2002)
OT: Adjusting Pic Sizes etc (2002)
RE: WebCat name recognition (was MacFinder -- a new WebDNAweb site) (1998)
Privacy Issue (LEGIT QUESTION) (2003)
[isfolder] and [filename] (1997)
Re(3): Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (1998)
NetScape problem (1999)
no global [username] or [password] displayed ... (1997)
NetScape problem (1999)