Re: [WebDNA] Problem with [ListDatabases] - WebDNA CE 6.0a - Windows

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105185
interpreted = N
texte = Thanks for all who responded. The simple solution is to use "path=" instead of "db=" in the listfields context. Note also the undocumented [memoryusage] tag for databases in a listdatabases context in the code below. I saw that the WebDNA prefs page was able to do this just fine so I looked at that code for comparison. I took the following working code from my server at /var/www/cgi-bin/WebCatalogEngine/Admin/Databases.tpl [LISTDATABASES] [NAME]
[NUMRECORDS] records, using [format thousands 0d][math][MEMORYUSAGE]/1024[/math][/format]K of RAM
[NUMFIELDS] fields [ListFields path=[name]][FIELDNAME], [/ListFields] [/LISTDATABASES] The above code from the WebDNA prefs pages shows the fields. If you change "ListFields path=" to "ListFields db=" it will break. The docs use "db=" and that works if you use a relative path name like db=../data.db. Bill Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Problem with [ListDatabases] - WebDNA CE 6.0a - Windows (William DeVaul 2010)
  2. Re: [WebDNA] Problem with [ListDatabases] - WebDNA CE 6.0a - Windows IIS 5.1 - Windows XP Pro Dev Box (Govinda 2010)
  3. Re: [WebDNA] Problem with [ListDatabases] - WebDNA CE 6.0a - Windows (William DeVaul 2010)
  4. Re: [WebDNA] Problem with [ListDatabases] - WebDNA CE 6.0a - Windows IIS 5.1 - Windows XP Pro Dev Box (Govinda 2010)
  5. Re: [WebDNA] Problem with [ListDatabases] - WebDNA CE 6.0a - Windows (William DeVaul 2010)
  6. Re: [WebDNA] Problem with [ListDatabases] - WebDNA CE 6.0a - Windows IIS 5.1 - Windows XP Pro Dev Box (Patrick McCormick 2008)
  7. [WebDNA] Problem with [ListDatabases] - WebDNA CE 6.0a - Windows IIS 5.1 - Windows XP Pro Dev Box ("Michael A. DeLorenzo" 2008)
Thanks for all who responded. The simple solution is to use "path=" instead of "db=" in the listfields context. Note also the undocumented [memoryusage] tag for databases in a listdatabases context in the code below. I saw that the WebDNA prefs page was able to do this just fine so I looked at that code for comparison. I took the following working code from my server at /var/www/cgi-bin/WebCatalogEngine/Admin/Databases.tpl [listdatabases] [NAME]
[NUMRECORDS] records, using [format thousands 0d][math][MEMORYUSAGE]/1024[/math][/format]K of RAM
[NUMFIELDS] fields [ListFields path=[name]][FIELDNAME], [/ListFields] [/LISTDATABASES] The above code from the WebDNA prefs pages shows the fields. If you change "ListFields path=" to "ListFields db=" it will break. The docs use "db=" and that works if you use a relative path name like db=../data.db. Bill William DeVaul

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:

Search syntax question (1998) Grep Help (2003) Searching Multiple DBs (1997) Feedback Please (2003) Summing fields (1997) WC Database Format (1997) LetterRip and WebCat & more (1998) Web Logs (1998) SKU lookup (1997) AuthNumber, ResponseText etc (2005) Appending space (1998) [OT] HTML Table Cell Problem (2003) more cookie crumbling (1999) Showif, Hideif reverse logic ? (1997) WebCat2b12 Mac.acgi--[searchstring] bug (1997) Emailer help....! (1997) Date field search needs ... (1998) Showif -what am I missing??? (1999) Up and running ... at last !! (1997) mail on NT (1998)