DtvLong dal_cch_chk_own (par)

Checks whether the current user is the owner of the record, which is subject to the current action in the mask.

Input Parameters Significance
char *par userexit parameter string

Output Parameters Significance
none -

Return Code Significance
0 user is owner
1 user is not owner

Can be invoked as userexit at any mask trigger.

Using this function you can simply protect records from special operations and make sure that only the owner of the record can execute these operations.

If the current user is not the owner of the record, DataView will prevent the action and output a warning in the message window.