<?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: Capturing Current View Name On Load</title><link>https://www.infopathdev.com:443/forums/thread/11657.aspx</link><pubDate>Fri, 23 Feb 2007 13:17:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11657</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11657.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=11657</wfw:commentRss><description>Hi Bwilbourne,&lt;br /&gt;&lt;br /&gt;In onLoad, we don't have a property called Name in view object when the form is loading. Whichever we set the by default view in InfoPath that view is loaded by defualtly. But we can the view name in "OnSwitchView" event. You can write below the code in "OnSwitchView" event.&lt;br /&gt;&lt;br /&gt;var viewName = thisXDocument.View.Name;</description></item><item><title>Capturing Current View Name On Load</title><link>https://www.infopathdev.com:443/forums/thread/11515.aspx</link><pubDate>Fri, 23 Feb 2007 12:12:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11515</guid><dc:creator>bwilbourne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11515.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=11515</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;Is there any possible way to capture the current view On Load?  I know that the view object does not exist until after the Onload event occurs, but I would think that there has to be a way to know which view is active when the form loads.  Any ideas?</description></item></channel></rss>