Store_Defaults - dbList_
Stores the existing values of the properties listed below so that they can be restored after this object is popped up with the prompt_callback message and then deactivated
Type: Event
Syntax
Procedure Store_Defaults
Description
The Store_defaults procedure stores the existing values of the properties listed below so that they can be restored after this object is popped up with the Prompt_Callback message and then deactivated. The values are restored by Restore_Defaults. Received only when Move_Value_Out_State is true.
The properties most-often affected within a dbList will be:
| Col 1 | Col 2 |
|---|---|
| Server | Auto_Server_State |
| Deferred_State | Initial_Column |
| Export_Column | Auto_Column_State |
| Seed_List_State | Export_Item_State |
| Auto_Export_State | Auto_Index_State |
| Ordering | Display_Buffer_msg |
If you need to save other properties, you may create the storage property for it and augment store_defaults and restore_defaults (which should always be mirrors of each other).
Class cOrdersdbList is a dbList
Procedure Construct_Object
Forward Send Construct_Object
Property Integer pbStoredHighlightRowState
End_Procedure
Procedure Store_Defaults
Boolean bState
Forward Send Store_Defaults
Get Highlight_Row_State To bState
Set pbStoredHighlightRowState to bState
End_Procedure
Procedure Restore_Defaults
Boolean bState
Forward Send Restore_Defaults
Get pbStoredHighlightRowState To bState
Set Highlight_Row_State to bState
End_Procedure
End_Class
You could now change highlight_row_State in the invoking object's prompt_callback procedure.