DataRecordRefresh

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalNumber DataRecordRefresh( SalNumber nWhat )

Applications and the framework call the DataRecordRefresh method to refresh the object currently in focus.

Parameters

Name Description
SalNumber nWhat Standard method parameter. Possible values are Const.METHOD_Inquire, Const.METHOD_Execute, Const.METHOD_GetType.

Returns

When nWhat = Const.METHOD_Inquire: the return value is TRUE if the refresh operation is available, FALSE otherwise.
When nWhat = Const.METHOD_Execute: the return value is TRUE if the record was successfully refreshed, FALSE otherwise.
When nWhat = Const.METHOD_GetType, the return value is Const.CHILDTYPE_SourceMethod.

Comments

DataRecordRefresh will reset all edit flags for this object.
E.g. The object will be repopulated and row flags reset.

This functionality is only implemented on table objects as cTableWindow and cChildTable.

The refresh is done without confirming dirty rowstate. 

DataRecordRemove is called automatically by the framework when a data source receives the Const.PM_DataRecordRefresh message.