<?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: Task panes</title><link>https://www.infopathdev.com:443/forums/thread/40101.aspx</link><pubDate>Sat, 28 Mar 2009 14:47:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40101</guid><dc:creator>NOVICE</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40101.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40101</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Anuma:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;div class="ForumPostContentText"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to write below code before switching the view (before opening a form)&lt;/p&gt;
&lt;p&gt;You can use below code to display the taskpane:&lt;/p&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;HTMLTaskPane&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; taskPane = (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;HTMLTaskPane&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)thisXDocument.View.Window.TaskPanes[0]; &lt;/font&gt;&lt;font size="2"&gt;
&lt;/font&gt;&lt;p&gt;&lt;font size="2"&gt;taskPane.Visible = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;You can use below code to hide the taskpane:&lt;/font&gt;&lt;/p&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;HTMLTaskPane&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; taskPane = (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;HTMLTaskPane&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)thisXDocument.View.Window.TaskPanes[0];&lt;/font&gt;&lt;font size="2"&gt; 
&lt;/font&gt;&lt;p&gt;&lt;font size="2"&gt;taskPane.Visible = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

Thanks for the respone is there anyway of getting a form to open with a different task pane to each view?</description></item><item><title>Re: Task panes</title><link>https://www.infopathdev.com:443/forums/thread/40023.aspx</link><pubDate>Thu, 26 Mar 2009 13:11:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40023</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40023.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40023</wfw:commentRss><description>&lt;div class="ForumPostContentText"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to write below code before switching the view (before opening a form)&lt;/p&gt;
&lt;p&gt;You can use below code to display the taskpane:&lt;/p&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;HTMLTaskPane&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; taskPane = (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;HTMLTaskPane&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)thisXDocument.View.Window.TaskPanes[0]; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;taskPane.Visible = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;You can use below code to hide the taskpane:&lt;/font&gt;&lt;/p&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;HTMLTaskPane&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; taskPane = (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;HTMLTaskPane&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)thisXDocument.View.Window.TaskPanes[0];&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;taskPane.Visible = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/div&gt;</description></item><item><title>Task panes</title><link>https://www.infopathdev.com:443/forums/thread/38435.aspx</link><pubDate>Sat, 14 Feb 2009 16:47:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38435</guid><dc:creator>NOVICE</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38435.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=38435</wfw:commentRss><description>Hi I am using Infopath 2003 is there any way of getting a custom taskpane to load to a specific view dependent on User Roles?

Ideally what I am trying to achieve is being able to load up a help view for the customer and a help view for the administrator actioning the form after submission.

Yours in hope.</description></item></channel></rss>