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:

Add message to Order (1997) security (1997) [WebDNA] How to get a screen size (2009) NT vs Mac (1997) How to Display text in empty fields (1997) File Upload (1997) Running _every_ page through WebCat-error.html (1997) taxTotal, too (1997) Instructions for Digest (1997) Logging purchases (1997) Configuring E-mail (1997) I've been thinking (2002) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Claris HomePage messes up the code (1997) WebCat2 beta 11 - new prefs ... (1997) 2.0 Info (1997) WebCat2b13MacPlugIn - [include] (1997) Location of Browser Info.txt file (1997) New WebDNA Example from Olin -- (1998) f2 download problems (1997)