ArcFM Engine Developer Guide
Submit(IDataServices,DataSet,Boolean) Method


A reference to IDataServices (see GetDataServices)
A DataSet to submit
Set to true if calling this method during the display of an edit form. Thus, the response dataset is not processed if the submit raises an exception. This way, the user can attempt to correct the problem in the edit form and resubmit.
Properly handles the details of submitting a DataSet to IDataServices.
Syntax
'Declaration
 
Public Overloads Shared Function Submit( _
   ByVal dataServices As IDataServices, _
   ByVal source As DataSet, _
   ByVal isEditFormSubmit As Boolean _
) As Boolean
'Usage
 
Dim dataServices As IDataServices
Dim source As DataSet
Dim isEditFormSubmit As Boolean
Dim value As Boolean
 
value = ResponderServices.Submit(dataServices, source, isEditFormSubmit)
public static bool Submit( 
   IDataServices dataServices,
   DataSet source,
   bool isEditFormSubmit
)

Parameters

dataServices
A reference to IDataServices (see GetDataServices)
source
A DataSet to submit
isEditFormSubmit
Set to true if calling this method during the display of an edit form. Thus, the response dataset is not processed if the submit raises an exception. This way, the user can attempt to correct the problem in the edit form and resubmit.

Return Value

True if there were changes successfully submitted.
Remarks
This function takes care of some house-cleaning steps that are required to properly handle the merging of the response (the DataSet returned by IDataServices.Submit). This includes removing Added DataRows copying across the ExtendedProperties of each DataTable in the response DataSet to the source DataSet (includes a mapping between the negative client-side autogenerated primary key and the "actual" database generated primary key).
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

ResponderServices Class
ResponderServices Members
Overload List

 

 


Send Comment