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 Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: many-to-one problem (Kenneth Grome 1998)
  2. Re: many-to-one problem (Peter Ostry 1998)
  3. Re: many-to-one problem (PCS Technical Support 1998)
  4. Re: many-to-one problem (Kenneth Grome 1998)
  5. Re: many-to-one problem (Peter Ostry 1998)
  6. Re: many-to-one problem (Kenneth Grome 1998)
  7. Re: many-to-one problem (Peter Ostry 1998)
  8. Re: many-to-one problem (Kenneth Grome 1998)
  9. Re: many-to-one problem (Peter Ostry 1998)
  10. Re: many-to-one problem (Kenneth Grome 1998)
  11. many-to-one problem (Peter Ostry 1998)
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 Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://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:

PCS Frames (1997) WebCat chatroom (1997) Some Advise needed (1997) Running 2 two WebCatalog.acgi's (1996) Protect vs Authenicate (1997) How can I Add several Items into the cart at once? (1997) Cookie Problems (2000) WebCat2 - Getting to the browser's username/password data (1997) Cloning OS X (2002) space at start of menu (2000) errormessages.db (1997) Archive (Zip, Sit, Tgz) (2004) Nested tags count question (1997) Web Catalog vs. ICAT (1997) Cart ID Duplication (2001) value in forms (2000) [WriteFile] problems (1997) Web Catalog 2 demo (1997) Getting Values into Cart the easy way?* (1998) Reversed words (1997)