HOME

AppML
AppML HOME

Web Applications
Web Services
Web Solution

AppML Intro
AppML How To
AppML Elements
AppML Services
AppML Document
AppML Database
AppML Reports
AppML Filters
AppML Lists
AppML Forms
AppML XML
AppML Partners

Case Study
Case Intro
Case Database
Case How To
Case HTML Reports
Case Corporate
Case HTML Forms
Case Application

Download XMLSpy here
Please visit our sponsors !

Case Study HTML Forms

previous next

The AppML Service HTML List is used to display data from a database.

The AppML Service HTML Form is used to input data to a database.


Prototyping

When a development project is in its initial state, it is of vital importance to have an efficient tool for rapid prototyping.

The AppML Service called app_htmllist.asp and app_htmlform.asp is the perfect tool for rapid prototyping of HTML input forms. With these Web Services you can prototype your HTML forms with only a few lines of AppML code. You don't have to write any HTML code. Just link to the AppML Service like this:

app_htmllist.asp?appname=appml_description.

Look at the example below.


Example - A Simple Input Form

This simple AppML description defines all the necessary elements to run the AppML HTML Form Service:

<?xml version="1.0" ?>

<appml>
<title>Suppliers</title>

<database>
  <connection>northwind</connection>
  <maintable>suppliers</maintable>
  <keyfield>supplierid</keyfield>
  <sql>
  SELECT CompanyName,ContactName,Address,City FROM Suppliers
  </sql>
</database>
<htmlform />

</appml>

Click here to run the HTML List and Form Services.

!!! Use the ... link to go to the edit form.


Example - An Input Form With a Query Filter

This second example uses an AppML description with added information about how the user can query and filter the application at runtime:

<?xml version="1.0" ?>

<appml>
<title>Suppliers</title>
<database>
  <connection>northwind</connection>
  <maintable>suppliers</maintable>
  <keyfield>supplierid</keyfield>
  <sql>
  SELECT CompanyName,ContactName,Address,City FROM Suppliers
  </sql>
</database>
<filters>
<query>
  <field>CompanyName</field>
</query>
</filters>
<htmlform />

</appml>

Click here to run the HTML List and Form Services.

!!! Use the FILTER link to filter the list.


Add a Corporate Layout

The HTML List and HTML Forms Services are also perfect for producing lists and forms with a corporate layout. 

By changing the styles in the standard stylesheet app_htmllist.css, and app_htmlform.css, you can easily change the overall look and style of your standard lists and input forms.

You can also put a header and a footer element into your AppML description to add some standard company or application specific information to your pages. 

<?xml version="1.0" ?>

<appml>
<title>Suppliers</title>
<database>
  <connection>northwind</connection>
  <maintable>suppliers</maintable>
  <keyfield>supplierid</keyfield>
  <sql>
  SELECT CompanyName,ContactName,Address,City FROM Suppliers
  </sql>
</database>
<filters>
<query>
  <field>CompanyName</field>
</query>
</filters>
<htmllist>
<header>
  <center>
  <h2>Northwind Traders Products and Suppliers Database</h2>
  </center>
</header>
<footer>
  <center><p><b>
  Copyright © 1999-2001 by Refsnes Data. All Rights Reserved.
  </b></p></center>
</footer>
</htmllist>
<htmlform />

</appml>

Click here to run the HTML Form Service.


Development Partners Wanted

Refsnes Data has just completed a large development project based on AppML. It has been estimated by our developers that development time has been reduced by 75% compared to ordinary web development.

For new projects and for development of next generation AppML web services, Refsnes Data is seeking new development partners. Read more.


previous next

Jump to: Top of Page or HOME or Printer Friendly Printer friendly page


Search W3Schools:


What Others Say About Us

Does the world know about us? Check out these places:

Dogpile Alta Vista MSN Google Excite Lycos Yahoo Ask Jeeves


We Help You For Free. You Can Help Us!


W3Schools is for training only. We do not warrant its correctness or its fitness for use. The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.

Copyright 1999-2002 by Refsnes Data. All Rights Reserved


Validate How we converted to XHTML Validate

ASPHits
Active Server Pages Resource Web Site


Your own Web Site?

Read W3Schools
Hosting Tutorial



$15 Domain Name
Registration
Save $20 / year!



Advertise
at W3Schools

Only 0.5 CPM



SELECTED LINKS

University Online
Master Degree
Bachelor Degree


Web Software

The Future of
Web Development


Jobs and Careers

Web Security
Web Statistics
Web Standards


PARTNERS

W3Schools
TopXML
VisualBuilder
XMLPitstop
DevelopersDex
DevGuru
Programmers Heaven
The Code Project
Tek Tips Forum
ZVON.ORG
TopXML Search