GUIBaseContext :: confirmAction - Confirm action to be executed
The function asks, whether an action is to be executed by prompting a confirmation dialog. Action query may be requested by setting GUIFramework.Query options. By default, Close , Delete (DeleteEntry, DeleteSelected), Store (StoreEntry) and Exit are supported. For requesting explicit confirmation, options for other actions may set by using the action name as option name and setting the value to false or NO . Actions not listed in the GUIFramework.Query option list are executed without confirmation by default. When the value for GUIFramework.Query is set to IGNORE (instead of ACCEPT ), all actions are executed without query.
... ConfirmedCopy () {
if ( queryPermission("Copy") )
executeAction("CopyEntry");
}
A State true indicates, that the function was executed successfully. Otherwise state is false .
Implementation overview
- Confirm action to be executed
GUIBaseContext :: confirmAction ( sAction ) - Confirm action to be executed for instance
GUIBaseContext :: confirmAction ( sAction, sKey )
Implementation details
-
Confirm action to be executed
bool GUIBaseContext  :: confirmAction ( odaba::String &sAction )
The function uses the name passed in sAction for requesting action confirmation. The name need not to be the same as the action name to be executed, but it is suggested to use the action name.
- sAction - Action name
to list
-
Confirm action to be executed for instance
bool GUIBaseContext  :: confirmAction ( odaba::String &sAction, odaba::String &sKey )
The function uses the name passed in sAction for requesting action confirmation and the value passed in sKey for identifying the instance. The name passed in sAction need not to be the same as the action name to be executed, but it is suggested to use the action name.
- sAction - Action name
- sKey
- Key string
The key string is a value to be searched in a list or text field.
to list