ArcFM Responder Mobile 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 System.Data.DataSet, _
   ByVal isEditFormSubmit As System.Boolean _
) As System.Boolean
'Usage
 
Dim dataServices As IDataServices
Dim source As System.Data.DataSet
Dim isEditFormSubmit As System.Boolean
Dim value As System.Boolean
 
value = ResponderServices.Submit(dataServices, source, isEditFormSubmit)
public static System.bool Submit( 
   IDataServices dataServices,
   System.Data.DataSet source,
   System.bool isEditFormSubmit
)
public function Submit( 
    dataServices: IDataServices;
    source: System.Data.DataSet;
    isEditFormSubmit: System.Boolean
): System.Boolean; static; 
public static function Submit( 
   dataServices : IDataServices,
   source : System.Data.DataSet,
   isEditFormSubmit : System.boolean
) : System.boolean;
public: static System.bool Submit( 
   IDataServices* dataServices,
   System.Data.DataSet* source,
   System.bool isEditFormSubmit
) 
public:
static System.bool Submit( 
   IDataServices^ dataServices,
   System.Data.DataSet^ source,
   System.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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ResponderServices Class
ResponderServices Members
Overload List

Send Feedback