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.
SalBoolean DataSourceUndoEdits(SalNumber nWhat)
Applications and the framework call the DataSourceUndoEdits method to refresh the objects that are currently selected and edited.
Name | Description |
---|---|
SalNumber nWhat | Standard method parameter. |
When nWhat = Const.METHOD_Inquire: the return value is TRUE if the edits can be
undone for the selected records, FALSE otherwise.
When nWhat = Const.METHOD_Execute: the return value is TRUE if the edits was
successfully undone for all selected records, FALSE otherwise.
When nWhat = Const.METHOD_GetType, the return value is Const.CHILDTYPE_SourceMethod.
The DataSourceUndoEdits method is basically the DataRecordRefresh method with
the difference that it's looping thought all selected rows and calling the
DataRecordRefresh for each one.
DataSourceUndoEdits is called automatically by the framework when a data source
receives the Const.PM_DataSourceUndoEdits message.