Re: lazy programming
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 33806
interpreted = N
texte = >I wanna make a replace context, where if on field exists it overwrites>another. And I don't wanna go in to the first field and 'hide' it if the>second exists.>>Shouldn't a string like this work?>[replace>blah=blah]category=Clothing&subcategory=&category=ddddd&subcategory=ssssss[/>replace]>>in the example above I'd like ddddd & ssssss to be the end result. Anybody>know why that won't work?You have to use the parameters in the replace tag to identify and retrieve only those records you need to replace, which means the category=Clothing&subcategory= belongs in the replace tag along with the blah=blah parameters, not inside the replace context. And of course this snippet of code has to be changed so it appears in the proper syntax, which means it has to look more like this:eqcategorydatarq=Clothing&eqsubcategorydatarq=[blank]================================Kenneth Grome, WebDNA Consultant808-737-6499 http://webdna.net================================-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>I wanna make a replace context, where if on field exists it overwrites>another. And I don't wanna go in to the first field and 'hide' it if the>second exists.>>Shouldn't a string like this work?>[replace>blah=blah]category=Clothing&subcategory=&category=ddddd&subcategory=ssssss[/>replace]>>in the example above I'd like ddddd & ssssss to be the end result. Anybody>know why that won't work?You have to use the parameters in the replace tag to identify and retrieve only those records you need to replace, which means the category=Clothing&subcategory= belongs in the replace tag along with the blah=blah parameters, not inside the replace context. And of course this snippet of code has to be changed so it appears in the proper syntax, which means it has to look more like this:eqcategorydatarq=Clothing&eqsubcategorydatarq=[blank]================================Kenneth Grome, WebDNA Consultant808-737-6499 http://webdna.net================================-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
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:
Include a big block of text (1997)
apostrophe in search item (1997)
Online magazine- monthly updates and such (1999)
Solaris and Webcat (2001)
OT: Let's see your workspace... (2005)
[OT] Robust order processing (2003)
Beta 18 (1997)
WebCat & Backoffice Solution? (2000)
Associative lookup style? + bit more (1997)
Help! WebCat2 bug (1997)
Sales Tax db (1998)
UPDATE PROBLEM (1997)
Size limit for tmpl editor ? (1997)
Online reference (1997)
Navigator 4.01 (1997)
RE: Credit card processing - UK (1997)
PCS Emailer's role ? (1997)
So many lookers, hey smith micro (2003)
WebCat2b15MacPlugin - [protect] (1997)
pictures / referrer etc. (1998)