The Web Object represents a DataWeb Application. The Web Object provides information about the current application, such the application's name, URL, and the data table contained in the application.
Prototype Properties
name |
A read only property that provides the name of the current application. |
domain |
A read only property that provides the domain of the current application. |
URL |
A read only property that provides the URL of the current web |
email |
A read only property that provides the email address of the owner of the application. |
tables |
A read only property that provides an object listing all of the data tables within the application. | |
Prototype Methods
getPlatformBuild |
Retrieves the build of the platform on which the application is currently running. |
getPlatformVersion |
Retrieves the version of the platform on which the application is currently running. |
tables |
Creates, retrieves and deletes tables in the application. |
|
Examples
The properties of the Web object are demonstrated in the code below. Assume there is an application named "stevehContactManager", owned by "steveh", and which contains six data tables: "AddressBook", "Log", "wscm_companies", "wscm_contacts", "wscm_contentType", "wscm_settings".
for(var prop in web)
response.write(prop + ":" + web[prop]);
for(prop in web.tables)
response.write(" " + prop + "<br>");
Output: web.name:stevehcontactmanager
web.domain:DataWeb.com
web.URL:http://stevehcontactmanager.DataWeb.com/
web.email:steveh@DataWeb.com
web.tables:
AddressBook
Log
wscm_companies
wscm_contacts
wscm_contactType
wscm_settings