Technical References - [listdatabases]

Lists all the currently-open databases.

numero = 202
interpreted = N
texte = [listdatabases]Database Tags[/listdatabases] To display a list of all the databases that WebDNA currently has open, put a [listdatabases] context into a template. You may put a [listfields] context inside the [listdatabases] context to display the names of all the fields in the database. Example:
[listdatabases]Name: [name]
# Records: [numrecords] [/listdatabases]
The following tags are available inside a [listdatabases] context:
TagDescription
[name]
the name of the database (can be a partial or full path).
[index]A number from 1 to the total number of databases, indicating this database's index placement in the list.
[numrecords]
The number of records (rows) in this database.
[numfields]The number of fields (columns) in this database.
[memoryusage]
Woukd show the RAM usage for a specific database.
[format thousands 0d][math][memoryusage]/1024[/math][/format]K
[xxx]
Any other WebDNA tag or context, including [ListFields]
[listfields path=[name]][fieldname], [/listfields]
[break]From version 8.1, if the [listdatabases] context sees the [break] tag while executing a loop, it will stop looping, once it finishes the current loop. Thus the [break] tag should only appear in a [showif] statement that is evaluated at the end (bottom) of the loop.
[listdatabases]Database Tags[/listdatabases]

To display a list of all the databases that WebDNA currently has open, put a [listdatabases] context into a template. You may put a [listfields] context inside the [listdatabases] context to display the names of all the fields in the database.

Example:

[listdatabases]
Name: [name]

# Records: [numrecords]

[/listdatabases]


The following tags are available inside a [listdatabases] context:


TagDescription
[name]
the name of the database (can be a partial or full path).
[index]A number from 1 to the total number of databases, indicating this database's index placement in the list.
[numrecords]
The number of records (rows) in this database.
[numfields]The number of fields (columns) in this database.
[memoryusage]
Woukd show the RAM usage for a specific database.
[format thousands 0d][math][memoryusage]/1024[/math][/format]K
[xxx]
Any other WebDNA tag or context, including [listfields]
[listfields path=[name]][fieldname], [/listfields]
[break]From version 8.1, if the [listdatabases] context sees the [break] tag while executing a loop, it will stop looping, once it finishes the current loop. Thus the [break] tag should only appear in a [showif] statement that is evaluated at the end (bottom) of the loop.

DOWNLOAD WEBDNA NOW!

Top Articles:

Download WebDNA Applications

WebDNA applications...

WebDNA Libraries

A list of available libraries for WebDNA...

WebDNA Modules

A list of the currently available modules...

AWS Raw WebDNA LAMP-Plus WebServer

Amazon Web Services (AWS) README for Machine Image ID...

F.A.Q

A compilation of some user's questions...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

Related Readings:

[setmimeheader]

Causes WebDNA to add a new MIME header to the outgoing HTML...

[cart]

Putting [cart] in your template automatically creates a unique shopping cart...

[authenticate]

WebDNA provides a few options for password protecting your pages...

[array]

Array Operation...

[regex]

[regex] is a full implementation of grep...

[DOS]

Executes the DOS batch file commands contained in the context and displays the results...