Online documentation - Websydian v6.0

Users Guide | Patterns Reference | WebsydianExpress | Search

 

WebInsertPage Function

The WebInsertPage pattern is a Page Generator prepared for handling the entering of new records in a database table.  The pattern is simple, containing only an Insert Event Handler specifying the fields to be entered by the user.

When applying the WebInsertPage pattern, it is necessary to replace the UIBasic.Insert and UIBasic.Detail views by the application views on which the database update is done.

Before a row is inserted in the database, validation is performed according to any validation rules specified in the AllFusion Plex model (e.g. by the FLD validated by FNC triple).  In case of failed validation, an Error Page function must be called.  This is done by testing on the local WsyBase<InstanceValid> field in the 0 call to build of document edit point (see also the WebUpdatePage function).