OnSyncWebApp - cLocalWebAppHost

Called each time a client makes a call to the server

Type: Event

Parameters: None

Syntax
Procedure OnSyncWebApp 

Description

Each time a call is made back to the server from a client the client's web properties will be synchronized on the server webapp that is handling that call. After these web properties are synchronized, but before the call is processed, the cLocalWebControlHost/cLocalWebAppHost/cDbLocalWebControlHost object will receive the OnSyncWebApp event.

You can use this event to perform additional actions related to synchronizing the web properties to the client. For example, you may have a special repository of secure data stored on the server that is related to the client making the current call. This event would be the ideal place to retrieve that secure data.

The sequence of events relating to OnSyncWebApp during a server call from the client are:
- Synchronize Web Properties with client,
- OnSyncWebApp,
- Synchronize each view's DDO structure (OnSyncView)
- Process server call.

The AppSynching function will return True during OnSyncWebApp.