<?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: Comparing  current view with a string</title><link>https://www.infopathdev.com:443/forums/thread/29676.aspx</link><pubDate>Tue, 24 Jun 2008 08:37:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29676</guid><dc:creator>shekar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29676.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=29676</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;string&lt;font size="2"&gt; CurrentView = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;font size="2"&gt;&lt;font color="#000000"&gt;.CurrentView.ViewInfo.Name;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt; (CurrentView == &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Managers Main view&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font size="2"&gt;Note:CurrentView cannot be called in the Form Loading event.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Try checking the above condition on view swithced event(if you want to check in onload).&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Comparing  current view with a string</title><link>https://www.infopathdev.com:443/forums/thread/29673.aspx</link><pubDate>Tue, 24 Jun 2008 06:58:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29673</guid><dc:creator>sweta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29673.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=29673</wfw:commentRss><description>&lt;p&gt;Can anybody tell me a function which compares the current view with a string???&amp;nbsp;I tried something like this...&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; CurrentView = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.ViewInfos.ToString();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt; (CurrentView == &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Managers Main view&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;........&lt;/p&gt;
&lt;p&gt;but this dint work out...&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>