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

WebUpdatePageForProcess

Scoped name

WebUpdatePageForProcess

Purpose

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

The page contains an update event.

Usage

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

Source Object Verb Target Object
MyUpdatePage is a FNC WSYAPI/WebUpdatePageForProcess
MyUpdatePage replaces VW

...by VW

UIBasic.Fetch

MyEntity.Fetch

MyUpdatePage

 

replaces VW

...by VW

UIBasic.Update

MyEntity.Update

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

The scoped Update 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 WebUpdatePageForProcess 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 update event perform the standard validation, set the option ValidationEnabled to no for the event - like this:

Source Object Verb Target Object
MyUpdatePage is a FNC WSYAPI/WebUpdatePageForProcess
MyUpdatePage.Update option NME

...value SYS

ValidationEnabled

No

More information