<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Data connections</title><link>https://www.infopathdev.com:443/forums/thread/52129.aspx</link><pubDate>Wed, 24 Feb 2010 16:45:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52129</guid><dc:creator>eg10013</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52129.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52129</wfw:commentRss><description>&lt;p&gt;I cannot find a way to uplad the template here.&lt;/p&gt;
&lt;p&gt;These are the rules in the button.&lt;/p&gt;
&lt;p&gt;setCurrentTime&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - set field value&lt;/p&gt;
&lt;p&gt;SignAndSetStatus&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - set fields value&lt;/p&gt;
&lt;p&gt;Submit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - submit the form to sharepoint document library&lt;/p&gt;
&lt;p&gt;SwitchView2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - swich form&lt;/p&gt;
&lt;p&gt;EmailToDistribution&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;send email&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Confirmation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - pop-up box&lt;/p&gt;
&lt;p&gt;CloseForm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- close form&lt;/p&gt;
&lt;p&gt;I have tried to move the switch rule to the top. It still does not work. But if I remove the&amp;nbsp;switch rule, then the default view is show in the mail body. Thank you very much for your help. Also can you please give me more information on&amp;nbsp;how to&amp;nbsp;excute the data connection only for it is a new form. This is my first infopath project.&amp;nbsp;I am under lot press to move my Lotus&amp;nbsp;Notes application to&amp;nbsp;SharePoint/InfoPath.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Data connections</title><link>https://www.infopathdev.com:443/forums/thread/52103.aspx</link><pubDate>Tue, 23 Feb 2010 22:24:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52103</guid><dc:creator>Ted Fitch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52103.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52103</wfw:commentRss><description>&lt;p&gt;If you can post the template to this thread that might help.&amp;nbsp; I know this issue does come up from time to time (see here: &lt;a href="http://www.infopathdev.com/forums/p/7457/27255.aspx#27255"&gt;http://www.infopathdev.com/forums/p/7457/27255.aspx#27255&lt;/a&gt;) it may have to do with timing of the events in the submit rules somehow.&amp;nbsp; If the template is easy enough for me to look at and preview on my computer I might be able to help with that.&lt;/p&gt;
&lt;p&gt;Ted&lt;/p&gt;</description></item><item><title>Re: Data connections</title><link>https://www.infopathdev.com:443/forums/thread/52099.aspx</link><pubDate>Tue, 23 Feb 2010 21:39:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52099</guid><dc:creator>eg10013</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52099.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52099</wfw:commentRss><description>&lt;p&gt;Sorry about that I have more questions.&lt;/p&gt;
&lt;p&gt;I setup a new view that contains just portion of the default view.&amp;nbsp;I add a rule to switch to the new&amp;nbsp;view before I use a&amp;nbsp;data connection to send email. In the database connection, I select &amp;quot;Send only the active view of the form and no attachment&amp;quot; option. I except the new view should be include in the body of the email. However, nothing show up in the body of email. Do you know what can be the problem?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Data connections</title><link>https://www.infopathdev.com:443/forums/thread/52086.aspx</link><pubDate>Tue, 23 Feb 2010 18:56:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52086</guid><dc:creator>eg10013</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52086.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52086</wfw:commentRss><description>&lt;p&gt;Thank you for your response. &lt;/p&gt;
&lt;p&gt;(1) In my knowledge, if I create a data connection, it is always executed when the form is open? So&amp;nbsp;do I need to stop this&amp;nbsp;automatical execution first (and how). Then run the&amp;nbsp;this code&amp;nbsp;this&lt;font size="2"&gt;.DataConnections[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;DataConnectionName&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].Execute(); when it is a new form (and how)?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;(2) Yes, I will need a second&amp;nbsp;view and&amp;nbsp;switch&amp;nbsp;to the new view before send email.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Data connections</title><link>https://www.infopathdev.com:443/forums/thread/52029.aspx</link><pubDate>Mon, 22 Feb 2010 20:06:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52029</guid><dc:creator>Ted Fitch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52029.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52029</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For your first question take a look at this forum post: &lt;a href="http://www.infopathdev.com/forums/p/8261/29968.aspx#29968"&gt;http://www.infopathdev.com/forums/p/8261/29968.aspx#29968&lt;/a&gt;&amp;nbsp; You can do what you want.&amp;nbsp;&amp;nbsp;You may also find that haveing all the data&amp;nbsp;connections be &amp;quot;on demand&amp;quot; for even new forms is ok and better performance.&lt;/p&gt;
&lt;p&gt;As to the 2nd question&amp;nbsp;- If I understand your quesiton&amp;nbsp;correctly what you need to do is to have a special view created for email, that view is blank and when&amp;nbsp;the user submits the form via the email submit you first switch to that view and then the rest of the submit rules execute - this will result in the user seeing a brief flash to the email view that is blank but then the email won&amp;#39;t contain the section you don&amp;#39;t want shown.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope that helps&lt;/p&gt;
&lt;p&gt;Ted&lt;/p&gt;</description></item><item><title>Data connections</title><link>https://www.infopathdev.com:443/forums/thread/52026.aspx</link><pubDate>Mon, 22 Feb 2010 19:23:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52026</guid><dc:creator>eg10013</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52026.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52026</wfw:commentRss><description>&lt;p&gt;I actually have two questions regard to data connection.&lt;/p&gt;
&lt;p&gt;(1) I set up data connections in a sharepoint data connection library. So every time user open the form, it take couple seconds to connect to the data connection library. Is there a way&amp;nbsp;to connect to the data connection library only when it is a new form? I only need to lookup data when it is a new form.&lt;/p&gt;
&lt;p&gt;(2) I use data connection to send email notification. Is there a way that I do not include attachment? There is a section that the sender can see it but the receiver should not be able to see it. That works fine when the receiver open the form via URL. However, the data connection force me to include an&amp;nbsp;view or attatchmen. Because the sender can view the section, so the the section is viewable to everyone in the body of email.&lt;/p&gt;
&lt;p&gt;I will appreciate your help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>