InfoPath Submitting Using C# DataAdapters Object

  • Thread starter Steep Learning Curve
  • Start date
S

Steep Learning Curve

Hi

I am having difficulty finding the right DataAdapter Object in the InfoPath
SDK to submit to the Sharepoint DataConnection. I have created a Email
Adapter below:

WebServiceAdapter2 WebServiceAdapter =
(WebServiceAdapter2)thisXDocument.DataAdapters["EmailConnection"];
WebServiceAdapter.Submit();

Whats is the DataAdapter object if I the DataConnection is on submitting
into Sharepoint? Can you please give me the example code as well.

Cheers
 
F

Franck Dauché

Hi,

Did you try?
DAVAdapter oSP = (DAVAdapter)thisXDocument.DataAdapters[XXX];
oSP.FolderURL = YYYY;
oSP.Submit();

Franck Dauché
 
S

Steep Learning Curve

XXX = Data Connection string name
YYYY = the name URL of the form library ? e.g
http://localhost/sites/productideas/list

I have tried that but it still failed.

Franck Dauché said:
Hi,

Did you try?
DAVAdapter oSP = (DAVAdapter)thisXDocument.DataAdapters[XXX];
oSP.FolderURL = YYYY;
oSP.Submit();

Franck Dauché

Steep Learning Curve said:
Hi

I am having difficulty finding the right DataAdapter Object in the InfoPath
SDK to submit to the Sharepoint DataConnection. I have created a Email
Adapter below:

WebServiceAdapter2 WebServiceAdapter =
(WebServiceAdapter2)thisXDocument.DataAdapters["EmailConnection"];
WebServiceAdapter.Submit();

Whats is the DataAdapter object if I the DataConnection is on submitting
into Sharepoint? Can you please give me the example code as well.

Cheers
 
F

Franck Dauché

Hi,

look at this:
http://msdn.microsoft.com/library/d...003_ta/html/odc_InfoPath_submitting_forms.asp

You can skip the second line if you don't need it. This is just to specify
the URL if you needed to, just like you could also specify the filename using
oSP.FileName = ZZZZZ;

Regards,

Franck Dauché


Steep Learning Curve said:
XXX = Data Connection string name
YYYY = the name URL of the form library ? e.g
http://localhost/sites/productideas/list

I have tried that but it still failed.

Franck Dauché said:
Hi,

Did you try?
DAVAdapter oSP = (DAVAdapter)thisXDocument.DataAdapters[XXX];
oSP.FolderURL = YYYY;
oSP.Submit();

Franck Dauché

Steep Learning Curve said:
Hi

I am having difficulty finding the right DataAdapter Object in the InfoPath
SDK to submit to the Sharepoint DataConnection. I have created a Email
Adapter below:

WebServiceAdapter2 WebServiceAdapter =
(WebServiceAdapter2)thisXDocument.DataAdapters["EmailConnection"];
WebServiceAdapter.Submit();

Whats is the DataAdapter object if I the DataConnection is on submitting
into Sharepoint? Can you please give me the example code as well.

Cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top