Hi,
The given below link will describe the syntax to submit the data to SQL
using custom code in c#. To submit the data to SQL using the custom code, you
have to write this in the "onSubmitRequest()" method.
http://msdn.microsoft.com/newsgroups/default.aspx?&query=Sandeep&lang=en&cr=US&g
uid=&sloc=en-us&dg=microsoft.public.infopath&p=1&tid=b605c4e9-b3ea-4734-988b-7fa
11e793815

Signature
Uma Karnati
http://www.autonomysystems.com
> I can't figure out the syntax for this...any examples?
> (Trying to retain programatically filled fields' data after a submit - they
> dissappear!)
BFSmith - 01 Mar 2006 13:37 GMT
I have seen this peviously...I am using javscript though...can you re-code
that in js?
Also-does it handle updates as well as inserts?
Also-I have 2 tables in the main data source...master/detail type
relationship (but I have NOT used the master/detail control on the form)...do
I have to handle each field/table specifically in the code?
I have'nt been able to find a single example of this code using js...
> Hi,
>
[quoted text clipped - 7 lines]
> > (Trying to retain programatically filled fields' data after a submit - they
> > dissappear!)