Procedure Prompt
| Call: | Send Prompt |
Pops up Prompt_Object of current object or column, or can be overwritten. Sent by key kPrompt.
In data entry objects (DEOs), this is typically handled by setting the Field_Prompt_Object in the DataDictionary class or object (DDO) that is the Server of the DEO or for the current dbGrid column.
This message can be overwritten to popup another object, for example, conditionally.
This sample shows how to overwrite the Prompt method to conditionally pop up different prompt objects (selection lists, in this example).
Procedure Prompt
If (Customer.Region = 1) ;
Send Popup of Region1_sl
Else If (Customer.Region = 1) ;
Send Popup of Region2_sl
Else ;
Send Popup of Region3_sl
End_Procedure
This sample shows how to overwrite the Prompt method for a dbGrid object to conditionally pop up (or not) a prompt object for a specific grid column (column 2).
Procedure Prompt
Integer iColumn
Get Current_Col to iColumn
If (iColumn=2) ;
send Popup of Customer_sl
End_Procedure