Up         
 
 

The DRILL and EDIT Pages

[ pages.htm file ]

The DRILL page executes the waDrill component, and then uses the PAGE macro to bounce the surfer to the EDIT page.

The EDIT page first makes sure that the PartNo literal has been set. This is done with the REQUIRES macro. The surfer is bounced to HOMEPAGE if PartNO is not assigned.

The next line displays a comment, FYI. You can see the partno variable.

The next line executes the waEdit component -- another hook into the Delphi code.

The next line is another comment showing you the SaveState property of the TWebDataSource. If you look at that comment in your web browser, you will see the key (pun intended) information saved for each surfer.

The next line executes the webdatasource1 component. The effect is to locate the table1 cursor based on PartNo.

The next section is a FORM, with the ACTION going to DATAPOST. We will cover that last.

Within the table are a series of fields. The key field may never be edited, so that one is done using just the FIELD macro. The rest of the fields are generated by the waInputField component which we wrote.

The final section uses the MATCH macro to do some string comparisons, thereby deciding which set of buttons to display based on Edit or View mode.

 
 

Copyright (c) 1995-1997 HREF Tools Corp. All Rights Reserved.
[ info@href.com ] [ catalog@mail.href.com ] [ webhubsales@href.com ]
Last generated: Mon 13 Oct 1997 06:19:42 GMT