<?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: Get Handle To Submit Data Connection Button</title><link>https://www.infopathdev.com:443/forums/thread/58497.aspx</link><pubDate>Tue, 31 Aug 2010 16:23:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58497</guid><dc:creator>Rui Rosa Mendes</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58497.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=58497</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi, Definitly I can do a lot in a custom&amp;nbsp; button. I create my web service submit data connection, I set it up on buttom Rules along with several verification operations.&amp;nbsp;But I would like to do all this, without using Rules. &lt;/p&gt;
&lt;p&gt;I want to use the button clicked event, but here I experience a great dificulty handling the submit data webservice connection.&lt;/p&gt;
&lt;p&gt;I call my SaveXXXXX (submit&amp;nbsp;data webservice connection)&amp;nbsp;, with a MyFields as an argument, but this data allways arrive empty to the web service. Using Rules all works perfectly!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It seems when I setup the SaveXXXX conection using Roles, some tranformation is appllied to MyFileds data!?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any hint to pass through&amp;nbsp; this problem?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks, Rui&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Get Handle To Submit Data Connection Button</title><link>https://www.infopathdev.com:443/forums/thread/49014.aspx</link><pubDate>Thu, 12 Nov 2009 22:24:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49014</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49014.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=49014</wfw:commentRss><description>&lt;p&gt;Ok, well you don&amp;#39;t have to send the email with the submit.&amp;nbsp; You can just have a regular submit and use a workflow to send the emails.&amp;nbsp; You should be able to get the email addresses of whoever you want without code and pass that data to the workflow for sending as many emails as you need.&lt;/p&gt;</description></item><item><title>Re: Get Handle To Submit Data Connection Button</title><link>https://www.infopathdev.com:443/forums/thread/49011.aspx</link><pubDate>Thu, 12 Nov 2009 21:30:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49011</guid><dc:creator>turfnsurf4me</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49011.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=49011</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t use the tool bar that&amp;#39;s turned off. I&amp;#39;ve used&amp;nbsp;a&amp;nbsp;Data Connection&amp;nbsp;that sends email &amp;amp; submits the form. In the FormsEvents_Submit event, I programmatically get the email recipients and send the email.&lt;/p&gt;
&lt;p&gt;The form is a content type. It&amp;#39;s used in a number of various document libs as the only object when a user selects &amp;quot;New&amp;quot; form. The code programmatically determines where it was launced by the use of e.InputParameters[&amp;quot;SaveLocation&amp;quot;] in the FormsEvents_Loading event.&amp;nbsp;That value is saved in the FormState Object.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;All that is done to change the FolderURL and Filename propterties of the FIleSubmitConnection&amp;nbsp;Object that&amp;#39;s cast from the this.DataConnections&lt;/p&gt;
&lt;p&gt;Having another View sounds like a good idea.&lt;/p&gt;</description></item><item><title>Re: Get Handle To Submit Data Connection Button</title><link>https://www.infopathdev.com:443/forums/thread/49010.aspx</link><pubDate>Thu, 12 Nov 2009 21:11:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49010</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49010.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=49010</wfw:commentRss><description>&lt;p&gt;Of course, just do what I said.&amp;nbsp; Completely turn off the &amp;quot;submit&amp;quot; button that is in the toolbar.&amp;nbsp; Use your own submit buttons in the body of the form and do whatever you want with them.&amp;nbsp; Not much reason to use the toolbar items, because you can&amp;#39;t do anything with them from a design perspective.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Turn off the toolbar first.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Drag a button to your canvas&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Double-click the button and click Rules (don&amp;#39;t click edit form code)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Leave the pulldown as the default, or you can change it to submit if you want to do that, but I don&amp;#39;t use the built-in submit&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Set your rules anyway you want with any conditional formatting you want.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Also, hide or show the button by using conditional formatting on the Display tab.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;You can either have multiple buttons for multiple people and multiple situations, or in your case where other people need to view with no ability to submit, simply create a new view that has no submit button on it, and use Form Load rules to switch the view based on identity or status of the form - depends on your requirements&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Why are you having to use code to submit the form?&amp;nbsp; Why do you need code to send the email?&amp;nbsp; I don&amp;#39;t ever hard code email addresses just to send emails dynamically.&amp;nbsp; I use the built-in abilities of SharePoint and InfoPath to retrieve that data based on whatever the process is.&amp;nbsp; An example of how I do this is here:&lt;/p&gt;
&lt;p&gt;&lt;a title="Permanent Link to InfoPath – Get user information without writing code&amp;nbsp;(extended)" href="http://claytoncobb.wordpress.com/2009/06/21/userprofileservice-extended/" rel="bookmark"&gt;&lt;strong&gt;&lt;font color="#536d88"&gt;InfoPath&amp;nbsp;- Get user information without writing code&amp;nbsp;(extended)&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Get Handle To Submit Data Connection Button</title><link>https://www.infopathdev.com:443/forums/thread/49008.aspx</link><pubDate>Thu, 12 Nov 2009 21:03:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49008</guid><dc:creator>turfnsurf4me</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49008.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=49008</wfw:commentRss><description>&lt;p&gt;When the form is brought&amp;nbsp;up for the first time, the user fills out the form, submits the form to the document lib where it originated from. That&amp;#39;s done programmatically. The Form sends email to various people that are obtained from the web.config &amp;lt;appsettings&amp;gt; key value pairs. Don&amp;#39;t want hardcoded email recipents. &lt;/p&gt;
&lt;p&gt;The Email contains the Forms data that was input. If a user navigates to the doc lib where the Form was saved to and brings it up, I want to hide the &amp;quot;Submit&amp;quot; button. In other words, I want to prevent the user from re-submitting the Form. Preservation of data.&lt;/p&gt;
&lt;p&gt;You can do all that &amp;quot;out of the box&amp;quot;?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Get Handle To Submit Data Connection Button</title><link>https://www.infopathdev.com:443/forums/thread/49007.aspx</link><pubDate>Thu, 12 Nov 2009 20:45:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49007</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49007.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=49007</wfw:commentRss><description>&lt;p&gt;Would you rather do that or just use no code and turn it off completely, then create custom buttons in your form that have conditional formatting and perform different actions depending on the person and/or workflow status?&amp;nbsp; I don&amp;#39;t think you really need to programmatically interact with the built-in submit button - I just turn that sucker off in Tools &amp;gt; Form Options &amp;gt; Open and Save (or Browser tab if it&amp;#39;s a browser form).&amp;nbsp; With custom submit buttons on the form canvas, you don&amp;#39;t need any code and can easily choose the behavior with conditional formatting and views.&lt;/p&gt;</description></item><item><title>Get Handle To Submit Data Connection Button</title><link>https://www.infopathdev.com:443/forums/thread/49003.aspx</link><pubDate>Thu, 12 Nov 2009 18:40:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49003</guid><dc:creator>turfnsurf4me</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49003.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=49003</wfw:commentRss><description>&lt;p&gt;Got this SharePoint Library Submit data connection on this Form.&amp;nbsp; On the Form there&amp;#39;s a &amp;quot;Submit&amp;quot; button associated with all that. I want to get a handle to that button programmatically so I can&amp;nbsp;disable and or&amp;nbsp;enable the button&amp;nbsp;under various conditions. &lt;/p&gt;
&lt;p&gt;Can I do that? I mean get a handle to the button. I&amp;#39;ve been on Google for the past hour, can&amp;#39;t really find anything on it.&lt;/p&gt;</description></item></channel></rss>