Delete?db=DatabaseName&searchData=xx
- Deletes all matching records from the database.
To delete records from a database, use a web browser to link to a URL containing
the Delete command (alternately, you may embed a
[Delete] tag into a template). Whenever WebCatalog
receives a Delete command, it immediately searches for all matching records and deletes
them from the database.
- SQL/ODBC Note: To append new records to the end of an ODBC-compliant table, use
the [SQL] context.
Example (normally you would link to a URL or form containing the following
information):
- http://yourserver.com/xx.tpl?command=Delete&db=SomeDatabase.db&eqNAMEdata=Grant
Try It!
The database "SomeDatabase.db" is opened, and all records whose name
field is "Grant" are deleted. The page sent back to the browser will be
xx.tpl
Here are some other ways to send the same command:
| HTML Source |
Description |
- <a href="xx.tpl
?command=Delete&db=SomeDatabase.db
&eqNAMEdata=Grant">
|
Hyperlink command |
- <form method="POST" action="xx.tpl">
<input type="hidden" name="command" value="Delete">
<<input name="eqNAMEdata">
<input type="submit">
</form>
|
- Form-based command
|
- New for 3.0: normally all database filepaths are relative to the local
template, or if they begin with "/" they are relative to the web server's
virtual host root. As of version 3.0, you may optionally put "^" in front
of the filepath to indicate that the file can be found in a global root folder called
"Globals" inside the WebCatalog folder. This global root folder is the
same regardless of the virtual host.