OnShow - cWebWindow

Fires when a window is shown

Type: Event

Parameters: None

Syntax
Procedure OnShow 

Description

Fires when a window is shown. Set pbServerOnShow to True for the server side even to fire.

This is a good place to hook into to do something like changing navigation.

For example, adding this code to the oOrder cWebView object in the WebOrder sample would cause the oCustomerCustomer_Number cWebForm to get the focus after the view is loaded.

Set pbServerOnShow to True  // must be set for OnShow to fire

Procedure OnShow
    Forward Send OnShow
    
    Send Focus of oCustomerCustomer_Number
End_Procedure

See Also

OnLoad