Re: [WebDNA] List Files question

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103674
interpreted = N
texte = That's a pretty smart way of using the notfound parameter;=20 I had not thought of that one before - thanks Ken. Gary On Wed, 23 Sep 2009 17:08:06 -0500 Kenneth Grome wrote: > This should be exceptionally fast: >=20 > Use listfiles one time -- at the top of the page -- to=20 >create a table: >=20 > [table name=3Dpics.db&fields=3DfName] > [listfiles path=3Dpics][filename] > [/listfiles][/table] >=20 > Then do a lookup in the table to see if each file you're=20 >looking for actually exists ... and take advantage of the=20 >'notfound' parameter in the lookup tag to avoid using=20 >showifs/hideif's and/or if/then/else: >=20 > table=3Dpics.db&value=3D[sku]A.jpg&lookinfield=3DfName&returnfield=3DfNa= me¬found=3DForSaleSignA.jpg]"=20 >border=3D"0"> >=20 > You should be able to copy/paste this code into your=20 >page. I may have missed something but I think this will=20 >do it. =20 >=20 > :) >=20 > Sincerely, > Ken Grome Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] List Files question (Patrick McCormick 2009)
  2. Re: [WebDNA] List Files question ("Terry Wilson" 2009)
  3. RE: [WebDNA] List Files question ("Will Starck" 2009)
  4. Re: [WebDNA] List Files question (Kenneth Grome 2009)
  5. RE: [WebDNA] List Files question ("Michael A. DeLorenzo" 2009)
  6. Re: [WebDNA] List Files question (Patrick McCormick 2009)
  7. Re: [WebDNA] List Files question (Kenneth Grome 2009)
  8. Re: [WebDNA] List Files question ("Gary Krockover" 2009)
  9. Re: [WebDNA] List Files question (Kenneth Grome 2009)
  10. Re: [WebDNA] List Files question (Marc Thompson 2009)
  11. Re: [WebDNA] List Files question (William DeVaul 2009)
  12. [WebDNA] List Files question ("Michael A. DeLorenzo" 2009)
That's a pretty smart way of using the notfound parameter;=20 I had not thought of that one before - thanks Ken. Gary On Wed, 23 Sep 2009 17:08:06 -0500 Kenneth Grome wrote: > This should be exceptionally fast: >=20 > Use listfiles one time -- at the top of the page -- to=20 >create a table: >=20 > [table name=3Dpics.db&fields=3DfName] > [listfiles path=3Dpics][filename] > [/listfiles][/table] >=20 > Then do a lookup in the table to see if each file you're=20 >looking for actually exists ... and take advantage of the=20 >'notfound' parameter in the lookup tag to avoid using=20 >showifs/hideif's and/or if/then/else: >=20 > table=3Dpics.db&value=3D[sku]A.jpg&lookinfield=3DfName&returnfield=3DfNa= me¬found=3DForSaleSignA.jpg]"=20 >border=3D"0"> >=20 > You should be able to copy/paste this code into your=20 >page. I may have missed something but I think this will=20 >do it. =20 >=20 > :) >=20 > Sincerely, > Ken Grome "Gary Krockover"

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:

Showif, Hideif reverse logic ? (1997) More on the email templates (1997) WebCat2b13 Command Reference Doc error (1997) [lineitems] and [writefile] (1998) Webcatalog not interpreting html pages (2002) [username][password] not showing up! HELP! (1999) Protect (1997) [input] [/input] (1997) I forgot (1998) Re:2nd WebCatalog2 Feature Request (1996) Funny Chars (1999) TeaRoom Order fields email account remain empty even though thewy are filled. (1997) docs for WebCatalog2 (1997) Searching multiple Databases (1997) WebDNA5 & XML (2003) Exclamation point (1997) Bug? (1997) WebCatalog (1998) Bug Report in the docs or? Listfields WebDNA 4.5 (2002) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)