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:

Quit revisited (1997) webcat 2.1 new cart fields - please explain more (1998) upgrading (1997) Opinion Poll Please (2002) Emailer choke (1997) Navigator Parsing (1997) Summing fields (1997) [WebDNA] Image resizing on the fly (2012) Webstar 1.3.1 PPC (1997) WebCat2b15MacPlugin - showing [math] (1997) format crash! (1997) Duplicate Carts (2006) WebCatalog vs. Cold Fusion (1998) WebDNA for Dummies (2004) RE: [WebDNA] multi-language sites in current versions of webdna? (2010) wc 2 pro users - sites, quotes wanted (1997) founditems (1998) Running _every_ page through WebCat ? (1997) Use of Back and Reload Buttons on ShoppingCart page? (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)