DtvLong dal_wdg_ret_dst ()

Returns the ident number of the target widget when copying records.

Input Parameters Significance
no -

Output Parameters Significance
no -

Return Code Significance
value Id of the target widget
0 no target widget active

Before you can activate the target widget, the edit_action-trigger for copy mode of the target widget must be passed, in order to check for instance for locks or access privileges. For this reason the source widget is still active while the edit_action-userexit of the target widget is being executed. After successfully finishing the edit_action-userexit you can use this function to refer to the target widget.

Additionally, you can compare the ident numbers returned by the functions dal_wdg_ret_act and dal_wdg_ret_dst to check, whether records are to be copied into the active widget or a different one.