<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How do you determine which view you are on?</title><link>https://www.infopathdev.com:443/forums/thread/71260.aspx</link><pubDate>Thu, 20 Oct 2011 16:15:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71260</guid><dc:creator>Scott Rooke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71260.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71260</wfw:commentRss><description>Good catch Hilary - Thanks!</description></item><item><title>Re: How do you determine which view you are on?</title><link>https://www.infopathdev.com:443/forums/thread/71255.aspx</link><pubDate>Thu, 20 Oct 2011 16:02:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71255</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71255.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71255</wfw:commentRss><description>&lt;p&gt;Actually, the link Scott mentions is great for info on the Views class - but there is a note at the top:&lt;/p&gt;
&lt;p&gt;The methods and properties of the &lt;span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.view.aspx"&gt;&lt;font color="#1364c4"&gt;View&lt;/font&gt;&lt;/a&gt;&lt;/span&gt; class are not available during the &lt;span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.formevents.loading.aspx"&gt;&lt;font color="#1364c4"&gt;Loading&lt;/font&gt;&lt;/a&gt;&lt;/span&gt; event.&lt;/p&gt;
&lt;p&gt;And it seems you are looking for something from the loading event. &lt;/p&gt;
&lt;p&gt;Perhaps the CurrentView property will help you? &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.xmlform.currentview.aspx"&gt;http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.xmlform.currentview.aspx&lt;/a&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How do you determine which view you are on?</title><link>https://www.infopathdev.com:443/forums/thread/71250.aspx</link><pubDate>Thu, 20 Oct 2011 14:22:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71250</guid><dc:creator>Scott Rooke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71250.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71250</wfw:commentRss><description>Okay, if I understand it correctly, you might be looking for this reference http://msdn.microsoft.com/en-us/library/aa946070.aspx.  &lt;br /&gt;Does this help?&lt;br /&gt;&lt;br /&gt;Scott</description></item><item><title>Re: How do you determine which view you are on?</title><link>https://www.infopathdev.com:443/forums/thread/71247.aspx</link><pubDate>Thu, 20 Oct 2011 13:47:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71247</guid><dc:creator>Kathleen Kelley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71247.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71247</wfw:commentRss><description>&lt;p&gt;Let me explain further. I have 3 form libraries with the same form but different views based on if it is new, then it moves to a processed form library once it is approved. Within the Processed library they are in a&amp;nbsp;print view. I needed to batch print these, since I couldn&amp;#39;t find a way to do this without buying a product. I decided to put the print form in a repeating section. If the user pulls up anyone of the forms within this library ( I will have to assume it will be printed). I need to know if the view is a print view on load event so I can set a variable because later I need to check that variable and based on it all the forms in the processed library will then be moved to an archive library. How can I check which view I am in. I can&amp;#39;t just set this variable on load of any view.&lt;/p&gt;</description></item><item><title>Re: How do you determine which view you are on?</title><link>https://www.infopathdev.com:443/forums/thread/71235.aspx</link><pubDate>Thu, 20 Oct 2011 01:23:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71235</guid><dc:creator>Scott Rooke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71235.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71235</wfw:commentRss><description>Kathleen -  &lt;br /&gt;&lt;br /&gt;I would recommend looking at this Microsoft KB article.  http://support.microsoft.com/kb/826997 Hopefully it will get you started.&lt;br /&gt;&lt;br /&gt;Another approach you might take is to create a rule on button click to get to the next View would be to &amp;quot;set a fields value&amp;quot; on button click to a field in the Main Datasource and then display that field on your form somewhere.  &lt;br /&gt;&lt;br /&gt;If I have misunderstood your question please provide more details and I&amp;#39;ll see if I can help.  &lt;br /&gt;&lt;br /&gt;Best&lt;br /&gt;&lt;br /&gt;Scott</description></item><item><title>How do you determine which view you are on?</title><link>https://www.infopathdev.com:443/forums/thread/71229.aspx</link><pubDate>Wed, 19 Oct 2011 23:15:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71229</guid><dc:creator>Kathleen Kelley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71229.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71229</wfw:commentRss><description>I have 3 views. I want set a flag if I am on a print view form. I want to archive only the opened print view form. What&amp;#39;s the code I need to write in the onLoad event to determine the view?</description></item></channel></rss>