Figure 3   FormManager Terms

Term
Description
Form Mode
An operational state setting for the form
Action
What happens when a mode is entered
Transition
The movement from one mode to another


Figure 6   Modes and their Object Settings

Mode
Object
Member
Value
Select
BtnDelete
Disabled
True
BtnEdit
Disabled
False
BtnUpdate
Disabled
True
BtnNew
Disabled
False
New
BtnDelete
Disabled
True
BtnEdit
Disabled
True
BtnUpdate
Disabled
False
Edit
BtnDelete
Disabled
False
BtnEdit
Disabled
True
BtnUpdate
Disabled
False
BtnNew
Disabled
False


Figure 8   CustomerOrders.asp


 <SCRIPT ID=serverEventHandlersVBS LANGUAGE=vbscript RUNAT=Server>
 dim CustomerID
 Sub lstCustomer_onchange()
     rsCustomerbyID.close
     CustomerID = lstCustomer.getValue()
     rsCustomerbyID.open
 End Sub
 
 Sub btnNew_onclick()
     ClearFields
     rsCustomerbyID.addRecord()
 End Sub
 
 Sub btnUpdate_onclick()
     rsCustomerbyID.updateRecord()
     SetList
     
 End Sub
 
 Sub thisPage_onenter()
     if thisPage.firstEntered then
         lstCustomer.addItem "","",0
     end if
 End Sub
 
 </SCRIPT>
 <SCRIPT LANGUAGE=vbscript RUNAT=Server>
 sub SetList
     lstCustomer.addItem "","",0
     lstCustomer.clear()
     rsCustomer.requery()
 end sub
 
 sub ClearFields()
     Textbox1.value = ""
     Textbox2.value = ""
     Textbox3.value = ""
     Textbox4.value = ""
     Textbox5.value = ""
     Textbox6.value = ""
     Textbox7.value = ""
     Textbox8.value = ""
     Textbox9.value = ""
     Textbox10.value = ""
     Textbox11.value = ""
     Textbox12.value = ""
     
 end sub
 </SCRIPT>