[Contact Manager | Example Applications ]

Overview

The Contact Manager example demonstrates how to select, update and view the records stored in the database using the webDbQuery to submit the SQL statement to the database. It also demonstrates the use of webPrintTable tag to display the record in a HTML table format.

Implementation File

File Name Type Function
address_enter.wml Template Allow users to enter information into the database.
address_edita.wml Template Display a record for edit.
view1.wml Template Displays the records stored in the database.

Address_Enter.WML

<webNoOutput>
<!---
| Description: enter address details.
|
| CVS History:
| $Log: address_enter.wml,v $
| Revision 1.1 2006/03/29 02:22:19 vidyar
| adding files
|
| Revision 1.2 2006/03/09 12:12:48 vidyar
| daily commit
|
|
|
--->
<webCall script=#application.FUNCPATH & "/geturl.wml"# destScript="address_enter.wml" url=#nextURL# byref sessionID=#sessionID#>
</webNoOutput>
<webSet #javascriptFile# = "address_enter.wml">
<webInclude script=#application.SCRIPTPATH & "/template.wml"#>


Address_EditA.WML

<webNoOutput>
<!---
| Description: Pull out info of the selected contact for editing.
|
| CVS History:
| $Log: address_edita.wml,v $
| Revision 1.1 2006/03/29 02:22:19 vidyar
| adding files
|
| Revision 1.2 2006/03/09 12:13:06 vidyar
| daily commit
|
|
|
--->
<webCall script=#application.FUNCPATH & "/geturl.wml"# destScript="address_edita.wml" url=#nextURL# byref sessionID=#sessionID#>
</webNoOutput>
<webSet #javascriptFile# = "address_edita.wml">
<webInclude script=#application.SCRIPTPATH & "/template.wml"#>


View1.wml

<webNoOutput>
<!---
| Description: Examples to illustrate how web+ contactmanager works.
|
| CVS History:
| $Log: view1.wml,v $
| Revision 1.2 2006/03/30 17:44:02 vidyar
| dailycommit
|
| Revision 1.1 2006/03/29 02:22:20 vidyar
| adding files
|
| Revision 1.2 2006/03/09 11:23:12 vidyar
| daily commit
|
|
|
--->
<webCall script=#application.FUNCPATH & "/geturl.wml"# destScript="view1.wml" url=#nextURL# byref sessionID=#sessionID#>
</webNoOutput>

<webInclude script=#application.SCRIPTPATH & "/template.wml"#>


Go Back

 

Copyright © 2009 Webplus, Inc. (talentsoft). All Rights Reserved.
webmaster@webplus.com