<?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>Views</title><link>https://www.infopathdev.com:443/forums/42.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Need to switch to a view with blank fields to enter a new record</title><link>https://www.infopathdev.com:443/forums/thread/39409.aspx</link><pubDate>Wed, 11 Mar 2009 14:39:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39409</guid><dc:creator>Joemanc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39409.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=39409</wfw:commentRss><description>&lt;p&gt;This is what I did for my solution and it works great!&lt;/p&gt;
&lt;p&gt;Create 4 views in your form: 1 for a Main Menu, 1 for the Query View, 1 for the Data View and 1 for the New Record View.&lt;/p&gt;
&lt;p&gt;Set your New Record View as the Default form.&lt;/p&gt;
&lt;p&gt;Go to Tools, Form Options and under&amp;nbsp;Open Behavior, create a rule that switches view to Startup view.&lt;/p&gt;
&lt;p&gt;On your startup view, add a button for Searching. Clicking this button&amp;nbsp;will take you to the Query Screen, and eventually the Data Screen once you run the query.&lt;/p&gt;
&lt;p&gt;Go back to the&amp;nbsp;startup view, add a button for entering a New Record. Behind this button, set the Action to New Record. Because we set the New Record View as the Default Form, not only do we clear out the Data Fields,&amp;nbsp;BUT, we also switch over to the New Records view. This is a great trick and workaround!&lt;/p&gt;
&lt;p&gt;Hope this helps everyone out!&lt;/p&gt;
&lt;p&gt;Joe&lt;/p&gt;</description></item><item><title>Re: Need to switch to a view with blank fields to enter a new record</title><link>https://www.infopathdev.com:443/forums/thread/38103.aspx</link><pubDate>Thu, 05 Feb 2009 10:07:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38103</guid><dc:creator>Vedran</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38103.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=38103</wfw:commentRss><description>Can u provide some code for doing this? I mean for adding &amp;quot;switch on another new after clicking a New Record button&amp;quot;?.</description></item><item><title>Re: Need to switch to a view with blank fields to enter a new record</title><link>https://www.infopathdev.com:443/forums/thread/33143.aspx</link><pubDate>Thu, 16 Oct 2008 07:54:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33143</guid><dc:creator>ravig</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33143.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=33143</wfw:commentRss><description>&lt;p&gt;Add a reference field to schema, set this field value to 1 if you click on full details button and set to 0 if you click on new form button. Populate the fields with query&amp;nbsp;values if the reference field value is 1 otherwise make the fields blank.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;OR&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;You can add another view and display this view when you click on New Form button.&lt;/p&gt;</description></item><item><title>Need to switch to a view with blank fields to enter a new record</title><link>https://www.infopathdev.com:443/forums/thread/32973.aspx</link><pubDate>Thu, 09 Oct 2008 19:31:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32973</guid><dc:creator>mcalicea</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32973.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=32973</wfw:commentRss><description>&lt;p&gt;Here&amp;#39;s what I have so far:&lt;/p&gt;
&lt;p&gt;I have 1 view that I run a query with, the results appear in a repeating table below the query with only 4 fields showing and a button to swith to the full details for that record which is another view.&lt;/p&gt;
&lt;p&gt;I have a button that I want to use to open another view with all the fields blank so that the user can enter new data.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s what happens right now:&amp;nbsp; if I go to the Add New view first it works ok.&amp;nbsp; If I run any query, then try to go to the Add New view, the Add New view opens with all the data from the query, one item after another.&amp;nbsp; I tried assigning a rule on the button to give one of the query fields a value&amp;nbsp;and then run a new query where I know there will not a result, but then the fields don&amp;#39;t show up on the Add New view.&amp;nbsp; I tried using the New Record button, but that takes me away from the Add New view.&lt;/p&gt;
&lt;p&gt;I hope this makes sense to someone, as I haven&amp;#39;t been able to get this to work.&lt;/p&gt;
&lt;p&gt;Thanks for anyone&amp;#39;s help with this.&lt;/p&gt;</description></item></channel></rss>