Skip to content

OnWidgetPropsChanged - cWebWidget

Called whenever the Widget's configurable property values are changed

Type: Event

Syntax

Procedure OnWidgetPropsChanged

Description

Called whenever the Widget's configurable property values are changed. This is usually in 1 of 2 instances:

  1. During initialization, when properties are first applied
  2. After changing them via a cWebWidgetConfigurationWizard instance.

Note that this always gets called upon saving a "new" configuration, even if no changes were actually made.

Procedure OnWidgetPropsChanged 
    String sAction    

    Forward Send OnWidgetPropsChanged     

    WebGet psAction to sAction     

    Case Begin 
        Case (sAction = "CustomerQuery") 
            WebSet psCaption of oActionBtn to "Customer Query" 
            Break 
        Case (sAction = "OrdersQuery") 
            WebSet psCaption of oActionBtn to "Orders Query" 
            Break 
        Case (sAction = "NewOrder") 
            WebSet psCaption of oActionBtn to "New Order" 
            Break 
        Case Else 
            Error DFERR_PROGRAM "Unimplemented action" 
    Case End 
End_Procedure