YouTip LogoYouTip

Appml Case Prototyping

* * * This case study demonstrates how to build a complete internet application with the functionality to list, edit, and search information across several tables in a database. * * * ## Prototyping In this chapter, we will build a prototype model for each table in the database. Prototypes are a very convenient starting point for developing applications. * * * ## Prototype Models First, create a folder for the prototypes. Name this folder "Prototypes". Then, create a prototype model for each table in the database. Use SELECT * from each table and save the models as XML files: ## Model: Proto_Customers.xml Demo SELECT * FROM Customers ## Model: Proto_Suppliers.xml Demo SELECT * FROM Suppliers ## Model: Proto_Products.xml Demo SELECT * FROM Products * * * ## Prototype View Create a prototype view, save it as Demo_Prototype.html, and try it out: ## View: Demo_Prototype.htm

Customers

customers=new AppML("appml.php","Prototypes/Customers"); customers.run("List01"); [Try It Β»](#) * * * ## Now Put It All Together Finally, create a simple prototype page for all prototype models with a small amount of JavaScript coding: ## Demo_Prototype_Views.htm

Demo Applications



function myOpen(pname) { var app_obj app_obj=new AppML("appml.php","Prototypes/" + pname); app_obj.run("Place01"); } [Show Result Β»](#)
← Appml Case ModelsAppml Case Intro β†’