Online documentation - Websydian v6.0

Users Guide | Patterns Reference | WebsydianExpress | Search

 

DetectedEvents Entity

The DetectedEvents entity stores information about all the protected events that have been activated and this is used to implement Repeated Event Detection.

The DetectedEvents entity is included in the RepeatedEventDetection pattern as the only entity.

The DetectedEvents Entity Fields

SessionID (key) Specified by an 'owned by' relation to the Session entity. If the Session entity has been supplied with additional key fields, these will also appear here.
The SessionID field contains the ID of the session in which the protected event was activated.
EventID (key) The ID of the protected event that was activated. This field contains the implementation name of the protected EventHandler function.
PageID (key) The ID of the page from where the protected event was activated. This key is necessary to ensure that users can activate the same button from a newly generated version of a page.
EventCount Number of times the protected event has been activated.

Additional View Functions

One new view function has been defined under the Update view.

CheckForRepeatedEvent

This function takes the above key fields as input and checks if the protected event identified by EventID has been activated from the current page (PageID) within the current session (SessionID). If not then a record is inserted setting the EventCount to 1.

If the protected event has been activated the EventCount is incremented by one and an error code is returned to the calling EventHandler function. The EventHandler function will then return a suitable error message to the user.

Service Functions

RepeatedEventErrorPage

This function inherits from ErrorPage and is called by the abstract EventHandler function when a protected event is activated more than once.