<AppML>
Reference Manual
<AppML> Data Model:
<AppML> Security
<AppML> security is set through the security attribute in the <AppML> tag.
The above application includes a security definition attribute that only allows users in the "artists" group to log in.
In this case, the username used for login must be a member of the "artists" group.
<datasource> Element
The <datasource> element in the <AppML> application defines four different data types:
Sub-elements (only one can be applicable)
Element | Description |
---|---|
<database> | Defines the data type |
<xmlfile> | Defines the XML source file |
<csvfile> | Defines a comma-separated text file |
<database> Element
The <database> element defines the database
Sub-elements
Element | Description |
---|---|
<connection> | Links to the database name |
<execute> | SQL statement to execute before data retrieval (optional) |
<sql> | SQL statement used for data retrieval |
<maintable> | Main table of the application (optional) |
<keyfield> | Key field of the main table (optional) |
Data Stored in SQL Database
This is the most commonly used solution for data-oriented applications.
The above model can select three data options (Artist, Title, Country) from the "CDDataBase" database's "CD_Catalog" table.
The number of rows returned is unknown.
Data Stored in XML File
<AppML> can read data from an XML file:
Example
This method allows data to be stored in an XML file on the server.
Data Stored in Text File
<AppML> can read data from a text file:
Example
This method allows data to be stored in a text file on the server.
If Needed, You Can Create a Database
<AppML> allows you to create a database if needed:
Perfect for quick prototyping models!