Websydian v6.1 online documentationOnline documentation - WebsydianExpress v3.5

WebInsertPageForProcess

Scoped name

WebInsertPageForProcess

Purpose

Inheriting from this abstract function gives you a page suitable for inserting records in the database.

The page contains an insert event.

Usage

You must replace the views UIBasic.Insert and UIBasic.Detail with the views used to update and fetch records for the entity you want to be able to insert records into - like this:

Source Object Verb Target Object
MyInsertPage is a FNC WSYAPI/WebInsertPageForProcess
MyInsertPage replaces VW

...by VW

UIBasic.Fetch

MyEntity.Fetch

MyInsertPage

 

replaces VW

...by VW

UIBasic.Update

MyEntity.Update

The insert event will validate the record according to the rules defined in the Plex model.

The scoped Insert EventHandler does not call any PageGenerator. You'll have to add the call to the PageGenerator to show in the post point "call to build of document".

Examples

The WebInsertPageForProcess is part of the maintenance suite you get by letting an entity inherit from WebEditDialogForProcess.

Special considerations

If you do not want to let the insert event perform the standard validation, set the option ValidationEnabled to no for the event - like this:

Source Object Verb Target Object
MyInsertPage is a FNC WSYAPI/WebInsertPageForProcess
MyInsertPage.Insert option NME

...value SYS

ValidationEnabled

No

More information