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:

Editing only the price field in the database (1998) I have observed and I am gone. (1998) Auto conversion of URLs? (1998) Opinion: [input] should be called [output] ... (1997) RE: WebCatalog2 for NT Beta Request (1997) [carts] and databases (1997) OT - quiet on the list today - here's something (2004) Security for malls with different webmasters (1998) Emailer (WebCat2) (1997) Fun with dates (1997) Ampersands in database fields? (1998) mail on NT (1998) Hiding files/images. (2000) [addfields] bombing 5.0 (2003) WebDNA Windows 5.0 sendmail bug (2003) [WebDNA] Google Cloud (2014) multiple replace sku data (2003) Gems (2006) Getting total number of items ordered (1997) ODBC and WebCatalog on Solaris and talking to a Sybase database (2001)