<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Controlling the Data Connection to a Web Service</title><link>https://www.infopathdev.com:443/forums/thread/35918.aspx</link><pubDate>Wed, 17 Dec 2008 15:39:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35918</guid><dc:creator>m181354</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35918.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35918</wfw:commentRss><description>&lt;div align="left"&gt;&lt;span class="690342215-17122008"&gt;&lt;font face="Arial" color="#0000ff" size="2"&gt;I understand about how to hide buttons to allow the Admin to copy form attribute to the Sharepoint List.&amp;nbsp; The two forms then has one&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span class="690342215-17122008"&gt;&lt;font face="Arial" color="#0000ff" size="2"&gt;with the Data Connection to the Sharepoint List(Admin)&amp;nbsp;and one has it without the Data Connection to the Sharepoint List(User)...correct?&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left"&gt;&lt;span class="690342215-17122008"&gt;&lt;font face="Arial" color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div align="left"&gt;&lt;span class="690342215-17122008"&gt;&lt;font face="Arial" color="#0000ff" size="2"&gt;But when&amp;nbsp;a user emails the form to the Admin and he opens it, how does it use the template that the Admin is using with the Data Connection instead of the one without?&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left"&gt;&lt;span class="690342215-17122008"&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div align="left"&gt;&lt;span class="690342215-17122008"&gt;&lt;font color="#0000ff"&gt;I am using a web service that updates a Sharepoint List.&amp;nbsp;The User can run with a form without this Data Connection and the Admin can run&amp;nbsp;a second&amp;nbsp;form with the Data Connection.&amp;nbsp; But how does the data on the form emailed to the Admin from the User get on the form that the Admin uses so he can run the web service?&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left"&gt;&lt;span class="690342215-17122008"&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div align="left"&gt;&lt;span class="690342215-17122008"&gt;&lt;font color="#0000ff"&gt;The problem is that the web service executes on the onLoad which causes a security error for the Users.&amp;nbsp; That is why I thought I may need to hard code the Data Connection on a form behind a button to get around this problem using Managed Code. This way the Data Connection would not execute on the onLoad. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left"&gt;&lt;span class="690342215-17122008"&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div align="left"&gt;&lt;span class="690342215-17122008"&gt;&lt;font color="#0000ff"&gt;&lt;strong&gt;DO YOU HAVE AN EXAMPLE OF A HARDCODED SHAREPOINT SITE LIST?&lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left"&gt;&lt;span class="690342215-17122008"&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div align="left"&gt;&lt;span class="690342215-17122008"&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;</description></item><item><title>Re: Controlling the Data Connection to a Web Service</title><link>https://www.infopathdev.com:443/forums/thread/35891.aspx</link><pubDate>Wed, 17 Dec 2008 08:19:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35891</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35891.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35891</wfw:commentRss><description>&lt;p&gt;Hi Steve,&lt;/p&gt;
&lt;p&gt;We have done this before by using two forms. One is the e-mail submit form which sends the form to the Admin. This form is a locally installed form that the users install using an MSI. The Admin installs the same form (via MSI), but on open, they see a button to submit to SharePoint which tries to submit to a hardcoded SharePoint site (Shiva&amp;#39;s post above explains how to use On Load rules to control&amp;nbsp;display/hide of the button).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding full trust with signed certificate (separate question in e-mail). I don&amp;#39;t recommend that since it requires an extra step from users to accept the personal certificate and it is not secure. On the other hand, it supports auto-update (whereas MSI&amp;#39;s do not). For the split scenario, though, I recommend a locally installed MSI (this is also known as a URN based solution since the href in the xsf file does not point to a URL, but rather a URN). URN forms let you circumvent the site access error on open since it won&amp;#39;t test the URL. Another approach is to make the e-mail version be a Restricted form - then you don&amp;#39;t have to worry about an MSI, but since your admins need to also install the form, I&amp;#39;d go with an MSI. Then, the admins can submit to the ShP list (Restricted forms don&amp;#39;t support that).&lt;/p&gt;
&lt;p&gt;I hope this was helpful. Good luck!&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Controlling the Data Connection to a Web Service</title><link>https://www.infopathdev.com:443/forums/thread/35829.aspx</link><pubDate>Tue, 16 Dec 2008 16:38:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35829</guid><dc:creator>m181354</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35829.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35829</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;How does the&amp;nbsp;below keep the Data Connection to the Sharepoint List from not running when the form opens?&amp;nbsp; Doesn&amp;#39;t the Data Connection automatically run when form opens?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;We can add the rule in onLoad form using Tools -&amp;gt; Form Options -&amp;gt; Open and Save -&amp;gt; Rules. We have to add condition to when this rule should be executed.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I understand the below you control when a rule is created as stated below&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;We can add Rule on button to load the secondary DOM. We can show / hide this button as per your requirement.&lt;/p&gt;</description></item><item><title>Re: Controlling the Data Connection to a Web Service</title><link>https://www.infopathdev.com:443/forums/thread/35826.aspx</link><pubDate>Tue, 16 Dec 2008 15:58:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35826</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35826.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35826</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We can add the rule in onLoad form using Tools -&amp;gt; Form Options -&amp;gt; Open and Save -&amp;gt; Rules. We have to add condition to when this rule should be executed.&lt;/p&gt;
&lt;p&gt;We can add Rule on button to load the secondary DOM. We can show / hide this button as per your requirement.&lt;/p&gt;</description></item><item><title>Controlling the Data Connection to a Web Service</title><link>https://www.infopathdev.com:443/forums/thread/35821.aspx</link><pubDate>Tue, 16 Dec 2008 15:14:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35821</guid><dc:creator>m181354</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35821.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35821</wfw:commentRss><description>&lt;font size="2"&gt;
&lt;p&gt;I have an InfoPath&amp;nbsp;Form that you&amp;nbsp;uses a Web Service Data Connection to a Sharepoint List. But only the Admin users have access to the List so the form ask for credentials when a a user opens the form to fill it out.&amp;nbsp; The Web Service is used&amp;nbsp;only by the &amp;nbsp;the Admins to copy the data from the form to a Sharepoint List using Managed Code C#.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Is there a way to&amp;nbsp;have the Data Connection not&amp;nbsp;get invoked when a user opens the&amp;nbsp;form&amp;nbsp;but when the Admin opens the form thru a rule or would I have to use Managed Code?&amp;nbsp; If Managed Code is the only way do you have an example?&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>