RE: creating writefile data from a nested search

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12052
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.Hope this helps,Marc Eagle StarNine Technologies http://www.smithmicro.com/ >From: WebDNA-Talk@smithmicro.com on Thu, Jun 19, 1997 12:28 PM >Subject: creating writefile data from a nested search >To: WebDNA-Talk@smithmicro.com > >Can I determine what goes into a [writefile] file by making the 'guts' of >that file the result of a search? This is what I mean ... > >[writefile thisFile] >[search db=xxx.db&neskudata=0] >fieldname1fieldname2fieldname3 >[founditems] >[fieldname1] [fieldname2][fieldname3] >[/founditems] >[/search] >[/writefile] > >In this example, I will need to get the actual and >characters inside the writefile context so the file is formatted properly >as a tab-delimited text file. Is this possible? > >Sincerely, Ken Grome >WebDNA Solutions Associated Messages, from the most recent to the oldest:

    
  1. RE: creating writefile data from a nested search (Kenneth Grome 1997)
  2. RE: creating writefile data from a nested search (Marc Eagle 1997)
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.Hope this helps,Marc Eagle StarNine Technologies http://www.smithmicro.com/ >From: WebDNA-Talk@smithmicro.com on Thu, Jun 19, 1997 12:28 PM >Subject: creating writefile data from a nested search >To: WebDNA-Talk@smithmicro.com > >Can I determine what goes into a [writefile] file by making the 'guts' of >that file the result of a search? This is what I mean ... > >[writefile thisFile] >[search db=xxx.db&neskudata=0] >fieldname1fieldname2fieldname3 >[founditems] >[fieldname1] [fieldname2][fieldname3] >[/founditems] >[/search] >[/writefile] > >In this example, I will need to get the actual and >characters inside the writefile context so the file is formatted properly >as a tab-delimited text file. Is this possible? > >Sincerely, Ken Grome >WebDNA Solutions Marc Eagle

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:

5.0 Pricing (2003) Mail Integration (1999) Webcat causing crashes left and right! (1997) Opinion: [input] should be called [output] ... (1997) Signal Raised (1997) selecting multiple found items (1997) [WebDNA] Why doesn't middle work as expected? (2009) OFF-TOPIC: Lending investors ... (2002) Date Formats (1997) WebCat2b12 CGI Mac - [shownext] problem (1997) Order not created error (1997) OT: need help with web address (2003) Help with Repost Data msg from form (1997) Password protect (2000) [WebDNA] Problems with the Emailer Queue (2012) Banner DNA (1997) Add to Cart & List of Products (1997) Tab Charactor (1997) Change Subtotal (2000) Forcing price recalculation in shopping cart (1998)