Online documentation - WebsydianExpress v3.0 |
WebInsertPageForProcess
Inheriting from this abstract function gives you a page suitable for inserting records in the database.
The page contains an insert event.
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 WebInsertPageForProcess is part of the maintenance suite you get by letting an entity inherit from WebEditDialogForProcess.
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 |