<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Tabbed navigation</title><link>https://www.infopathdev.com:443/forums/thread/40827.aspx</link><pubDate>Tue, 21 Apr 2009 21:26:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40827</guid><dc:creator>ocampod84</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40827.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40827</wfw:commentRss><description>&lt;p&gt;Sorry, I didn&amp;#39;t get back to you earlier. I&amp;#39;m glad that you got it figured out and that it worked.&lt;/p&gt;</description></item><item><title>Re: Tabbed navigation</title><link>https://www.infopathdev.com:443/forums/thread/40797.aspx</link><pubDate>Tue, 21 Apr 2009 15:16:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40797</guid><dc:creator>blue_psychedelic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40797.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40797</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Sorry, I really don&amp;#39;t have a clue about code. But as I pasted what you typed, and it gives me this error:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;quot;Name &amp;#39;tabname&amp;#39; is not declared.&amp;quot;&lt;/p&gt;&lt;p&gt;Edit:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Never mind! I figured it out. Thanks a bunch!!! &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Tabbed navigation</title><link>https://www.infopathdev.com:443/forums/thread/40795.aspx</link><pubDate>Tue, 21 Apr 2009 14:41:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40795</guid><dc:creator>ocampod84</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40795.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40795</wfw:commentRss><description>&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Here is some sample code&amp;nbsp;from VB using VSTA in&amp;nbsp;InfoPath 2007. You&amp;#39;ll have&amp;nbsp;edit the button&amp;#39;s&amp;nbsp;code (double click on the button and&amp;nbsp;click on &amp;quot;Edit Form Code&amp;quot;). I hope this helps.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; btnSummary_Clicked(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ClickedEventArgs)&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Write your code here.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; tabName &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;summary&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; // pass the string to the setActiveTab procedure&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;setActiveTab(tabName)&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; setActiveTab(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;ByRef&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; tabName &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; // select the node&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; activeTabNode &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XPathNavigator = MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;//my:ActiveTab&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; // set the value&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;activeTabNode.SetValue(tabName)&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Tabbed navigation</title><link>https://www.infopathdev.com:443/forums/thread/40793.aspx</link><pubDate>Tue, 21 Apr 2009 13:40:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40793</guid><dc:creator>blue_psychedelic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40793.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40793</wfw:commentRss><description>&lt;p&gt;Yes, I could do it with rules, creating a rule where the click of the button causes a view switch, but having all these views creates a trip to the server, and I don&amp;#39;t want that. &lt;/p&gt;&lt;p&gt;What I&amp;#39;m looking for is someone who can tell me what the equivalent is
in either C# or VB, so that the form can be browser-enabled. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Basically, the form has three fields and three buttons. The buttons are named &amp;quot;summary&amp;quot; &amp;quot;remarks&amp;quot; and &amp;quot;example&amp;quot; and the three fields are named likewise to correspond.&lt;br /&gt;&lt;br /&gt;Activtab is another field in the data source, but not visible on the form itself. &lt;/p&gt;&lt;p&gt;Conditional formatting is set such that when the field activetab is not equal to one of the three other fields (summary, remarks, example), that field is hidden. Also, when activetab is selected, it changes color to match the different fields. It gives the appearance of clicking on tabs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The code for each button:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function summary::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;setActiveTab(&amp;quot;summary&amp;quot;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function remarks::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;setActiveTab(&amp;quot;remarks&amp;quot;);&lt;br /&gt;}&lt;br /&gt;function example::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;setActiveTab(&amp;quot;example&amp;quot;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;and the code for activetab:&lt;br /&gt;&lt;br /&gt;function setActiveTab(tabName)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;XDocument.DOM.selectSingleNode(&amp;quot;//my:ActiveTab&amp;quot;).text=tabName;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Tabbed navigation</title><link>https://www.infopathdev.com:443/forums/thread/40760.aspx</link><pubDate>Mon, 20 Apr 2009 19:00:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40760</guid><dc:creator>ocampod84</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40760.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40760</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not too familiar with browser compatible forms, but would conditional formatting/rules work in this situation? I&amp;#39;m an InfoPath noob as well, but I&amp;#39;ve worked with some VB in IP. Could you post your code so that others may try to understand what you are doing?&lt;/p&gt;</description></item><item><title>Tabbed navigation</title><link>https://www.infopathdev.com:443/forums/thread/40759.aspx</link><pubDate>Mon, 20 Apr 2009 18:52:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40759</guid><dc:creator>blue_psychedelic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40759.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40759</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello, I&amp;#39;m hoping that someone can help me out.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I created a really nice form in InfoPath 2007 that used tabbed navigation, managed by a small script, following a tutorial I found online.&lt;/p&gt;&lt;p&gt;Basically, I have buttons that when clicked, show only certain sections of the form.&lt;/p&gt;&lt;p&gt;Now, the problem is, jscript isn&amp;#39;t browser compatible. Can anyone tell me how to duplicate this using either VB or C# so that can keep the pretty tabs I created, rather then using the built in switch views feature?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I know very little about code, so if you can dumb it down for me, that&amp;#39;s perfect.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>