Online documentation - Websydian v6.1 |
Implementing the WebEditDialog pattern is easy. Essentially, all you need to do is to let entities that need the web edit functionality inherit from the WebEditDialog pattern.
Example:
The Department entity inherits from the WebEditDialog pattern. Three Page Generator functions are inherited and each of them includes a number of Event Handler functions.
Calls-triples must be declared from the Dispatcher function to all implemented Event Handler functions scoped in the WebEditSuite.
Validation functionality is included in the ConfirmInsert and ConfirmUpdate Event Handler in patterns. If one or more validations fails, the library function ErrorPage will be called displaying standard error messages for the failed validations. This ErrorPage function from the WSYBASE library could then be replaced by an Error Page function defined by the developer.
Example:
Department.WebEditSuite | replaces FNC ...by FNC |
ErrorPage WebErrorPage |
WebErrorPage | is a FNC | ErrorPage |
In the example above, all references to the ErrorPage function is replaced by references to WebErrorPage. This will happen for all functions scoped by the Employee.WebEditSuite.