RE: creating writefile data from a nested search
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12053
interpreted = N
texte = >Ken ->>Sure, it works the same as the [sendmail] context in that it keeps the>formatting of the text containing the WebDNA. What I mean is>>[writefile thisFile]>[search db=xxx.db&neskudata=0]>fieldname1 fieldname2 fieldname3>[founditems]>[fieldname1] [fieldname2] [fieldname3]>[/founditems]>[/search]>[/writefile]>>(there are tab characters between the field names and a return character>at the end of the line)>will write the results of the search to a file, with an extra line between>each [founditems] line. If you don't want the extra line, make>[founditems] look like>>[founditems][fieldname1] [fieldname2] [fieldname3]>[/founditems]>>instead. The search results are properly written to the file, by the way.I never put a founditems context completely inside a writefile contextbefore. Thanks Marc! :)Sincerely, Ken GromeWebDNA Solutions
Associated Messages, from the most recent to the oldest:
>Ken ->>Sure, it works the same as the
[sendmail] context in that it keeps the>formatting of the text containing the WebDNA. What I mean is>>[writefile thisFile]>[search db=xxx.db&neskudata=0]>fieldname1 fieldname2 fieldname3>
[founditems]>[fieldname1] [fieldname2] [fieldname3]>[/founditems]>[/search]>[/writefile]>>(there are tab characters between the field names and a return character>at the end of the line)>will write the results of the search to a file, with an extra line between>each
[founditems] line. If you don't want the extra line, make>
[founditems] look like>>
[founditems][fieldname1] [fieldname2] [fieldname3]>[/founditems]>>instead. The search results are properly written to the file, by the way.I never put a founditems context completely inside a writefile contextbefore. Thanks Marc! :)Sincerely, Ken GromeWebDNA Solutions
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:
taxTotal, too (1997)
Need help... (1997)
WebCat with WebTen (1998)
WC Database Format (1997)
Smart caching problems with 2.1b3? (1997)
showif and cart (1997)
quantity minimum problem (1997)
Search/sort in URL Was: GuestBook example (1997)
Help! WebCat2 bug (1997)
2nd WebCatalog2 Feature Request (1996)
PCS Frames-Default page is solution! (1997)
Grep to convert characters to html entities (2006)
2 easy questions re: [showif] and [sendmail] (1997)
select multiple 2 more cents (1997)
Authenticate (1997)
[OT] Communigate List (2003)
Unexpected error (1997)
New Shipping Options? (2001)
Search results templates (1996)
WebCommerce: Folder organization ? (1997)