Re: many-to-one problem
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17197
interpreted = N
texte = Hi Peter,I'm glad my suggestion got you started. Writing a temp db and using summ=T to search that db is just what I would have done. Since your application of this technique is not particularly demanding as far as time or resources, writing a temp db is a good solution.>BTW - I discovered some strange behavior:>[appendfile somefile]sometext[/appendfile]>does not put a carriage return at the end of the line, I have to>write it like this:>[appendfile somefile]sometext>[/appendfile]Appendfile and writefile are *supposed* to work like this. if you want a carriage return after the sometext, you have to put it there ... :)Some people get the [append] context confused with [appendfile] -- and they perform very different functions.1- The [append] context writes field values to an existing WebCat database file -- in the proper WebCat database format.2- The [appendfile] context appends EXACTLY what you type into the context -- nothing more and nothing less. Writefile does the same thing, it writes exactly what you enter into the [writefile] context.The only thing that gets changed inside an appendfile (or writefile or sendmail) context are the enclosed WebDNA tags, which are replaced *before* the text is appended. Everything else gets written exactly the way you type it. That's why careful formatting is very important when using appendfile, writefile and sendmail ... :)Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
Hi Peter,I'm glad my suggestion got you started. Writing a temp db and using summ=T to search that db is just what I would have done. Since your application of this technique is not particularly demanding as far as time or resources, writing a temp db is a good solution.>BTW - I discovered some strange behavior:>[appendfile somefile]sometext[/appendfile]>does not put a carriage return at the end of the line, I have to>write it like this:>[appendfile somefile]sometext>[/appendfile]Appendfile and writefile are *supposed* to work like this. if you want a carriage return after the sometext, you have to put it there ... :)Some people get the
[append] context confused with
[appendfile] -- and they perform very different functions.1- The
[append] context writes field values to an existing WebCat database file -- in the proper WebCat
Database format.2- The
[appendfile] context appends EXACTLY what you type into the context -- nothing more and nothing less. Writefile does the same thing, it writes exactly what you enter into the
[writefile] context.The only thing that gets changed inside an appendfile (or writefile or sendmail) context are the enclosed WebDNA tags, which are replaced *before* the text is appended. Everything else gets written exactly the way you type it. That's why careful formatting is very important when using appendfile, writefile and sendmail ... :)Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
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:
Squares instead of spaces (2001)
More questions about serial number dishing (1997)
Need help with [cart] (2000)
errormessages.db (1997)
using showpage and showcart commands (1996)
javascript & webdna... search without refresh (2002)
Mac v. NT (1998)
[ListFiles] & [loop] (1998)
Refreshing document (2000)
shipcost (1997)
User Authentication (2003)
Parameter Passing (2000)
Search for 20 finds 2000, 200 Why? (1997)
Use of Back and Reload Buttons on ShoppingCart page? (1997)
HideIf ip= OR ip= (1998)
RE: OK, here goes... (1997)
Multiple postings (2000)
contextual shownext (1998)
Associative lookup style? + bit more (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)