int dal_wdh_set_chk_faw (fnc)

Sets a Fetch after Write callback check funtion.

Input Parameters Significance
WDH_FNC_FAW_FNC fnc pointer to check function

Output Parameters Significance
none -

Return Code Significance
0 check function was registered
1 old check function was overwritten

With the help of the check function you can decide whether data are to be fetched after a write write operation.

Especially when creating relations it can happen that joined fields in a mask remain empty or are filled with wrong data. In order to guarantee the correct data provision for these fields, records can be fetched from the database back into the mask immediately after writing them (dal_wdh_wri_lis).

The check function must correspond to the specification int fnc(idw, idm, row). The parameters are:

If the passed check function returns 0, the data are fetched after the writing operation. If it returns 1, the data are not fetched. If no check function is set, 1 is returned for reasons of compatibility.