Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

AppML Reference Manual

Reference manual


Data Model:

Datasource definition goes here

Filter definitions goes here (if any)

Update definitions goes here (if any)

Anything you want to add to the model


Safe

Security is set via the security attribute in the tag.

The application above includes a security definition attribute at the beginning, allowing only artists users to log in.

In this case, the logged-in user's name must be a member of the "artists" group.


Element

The application's element defines 4 different data types:

Child element (only one can apply)

Element Description
Defines the data type
Defines the XML source file
Defines a comma-separated text file

Element

The element defines the database

Child Element

Element Description
Linked database name
SQL statement executed before data retrieval (optional)
SQL statement used to retrieve data
Main table of the application (optional)
Key field of the main table (optional)

Data stored in an SQL database

This is the most common solution for data-oriented applications.

CDDataBase

SELECT Artist, Title, Country FROM CD_Catalog

The model above can select three data options (Artist, Title, Country) from the "CD_Catalog" table of the "CDDataBase" database.

The number of rows returned is unknown.


Data stored in an XML file

Data can be read from an XML file:

Example

CD

Title

TITLE

Artist

ARTIST

Country

COUNTRY

Try it »

This method can store data in an XML file on the server.


Data stored in a Text file

Data can be read from a text file:

Example

Title

1

Artist

2

Price

5

Try it »

This method can store data in a text file on the server.


If needed, you can create a database

If needed, you can create a database:

CDDataBase

CREATE TABLE CD_catalog (

CD_Id INT IDENTITY,

Title NVARCHAR(255),

Artist NVARCHAR(255),

Country NVARCHAR(255),

Company NVARCHAR(255),

Price NUMBER,Published INT)

Refine the rapid prototype model!