
Signature
Kalyan G Reddy - INFOPATH MVP 2007
http://www.ggktech.com
Hi Kalyan,
Thanks for the quick reply, but when I select the option for Submitting
through Roles, the option for submitting through Code is disabled. And I need
the code to submit to the Database(SQL 2005) as there are some manipulations
required to be done while submitting. PLease let me know If I am missing
someting.
Thanks
> Hello
>
[quoted text clipped - 11 lines]
> >
> > Thanks
Kalyan G Reddy MVP (GGK Tech) - 26 Jul 2007 16:22 GMT
Hello
You use the Action as Rules and Custom Code
For Submit to SQL use Custom code (Edit Form Code) and for saving or
submitting to sharepoint Click on Rules and Add Action -> Submit using a
Dataconnection -> Add -> To a Sharepoint Library....
Any Number of rules can be set on the Button.
I hope I made it clear
--
Kalyan G Reddy - INFOPATH MVP 2007
http://www.ggktech.com
> Hi Kalyan,
>
[quoted text clipped - 21 lines]
> > >
> > > Thanks
PRB - 26 Jul 2007 16:26 GMT
Hi,
Again Thanks for the quick reply, but we do not have a submit button on the
form, we are using the Submit form option and with that we do not get the
option to do both. Hope I am not confusing.
> Hello
>
[quoted text clipped - 35 lines]
> > > >
> > > > Thanks
Kalyan G Reddy MVP (GGK Tech) - 26 Jul 2007 16:42 GMT
Hello
Aah Now I understand. In this case you should write the code to submit to
sharepoint also as you did for submitting to SQL, or else Submit button is a
best option which allows you to do both.

Signature
Kalyan G Reddy - INFOPATH MVP 2007
http://www.ggktech.com
> Hi,
>
[quoted text clipped - 41 lines]
> > > > >
> > > > > Thanks
PRB - 27 Jul 2007 01:26 GMT
Hi,
Thanks for the solution specified but can you specify where can I find a
sample/example to implement this or have you implemented this type of code?
Also in the Custom button I believe you cannot do validation for the fields
before submittin the form.
In Early anticipation
Thanks
> Hello
> Aah Now I understand. In this case you should write the code to submit to
[quoted text clipped - 46 lines]
> > > > > >
> > > > > > Thanks
K.Ramana Reddy(GGK Tech) - 27 Jul 2007 05:44 GMT
Hi,
Check out this link,
http://msdn2.microsoft.com/en-us/library/bb251026.aspx
We can validate the fields in the form before submitting to sharepoint.
I hope this will help for you.

Signature
k.Ramana Reddy
http://www.GGKtech.com
> Hi,
>
[quoted text clipped - 57 lines]
> > > > > > >
> > > > > > > Thanks
PRB - 27 Jul 2007 13:50 GMT
Hi,
Thanks again for the reply, Where can I add the JScript code since our
programming language is VB/C# and the form is web enabled. Am I missing
something?
Thanks
> Hi,
>
[quoted text clipped - 66 lines]
> > > > > > > >
> > > > > > > > Thanks
K.Ramana Reddy(GGK Tech) - 27 Jul 2007 15:22 GMT
Hi,
Convert the Jscript code to VB/C#

Signature
k.Ramana Reddy
http://www.GGKtech.com
> Hi,
>
[quoted text clipped - 74 lines]
> > > > > > > > >
> > > > > > > > > Thanks