<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Change a Tab to Open to a Default View</title>
	<atom:link href="http://www.force2b.net/index.php/2009/06/open-tab-to-default-view/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.force2b.net/index.php/2009/06/open-tab-to-default-view/</link>
	<description></description>
	<lastBuildDate>Mon, 09 Jan 2012 15:41:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jon LaRosa</title>
		<link>http://www.force2b.net/index.php/2009/06/open-tab-to-default-view/comment-page-1/#comment-17843</link>
		<dc:creator>Jon LaRosa</dc:creator>
		<pubDate>Fri, 16 Dec 2011 22:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=251#comment-17843</guid>
		<description>Looks like not all of my code got posted, so I&#039;ll try it again here.  If you still can&#039;t see it all, it&#039;s here:
http://www.tdcorp.org/misc_testing/redirect_some_users_default_tab_for_others.html






     window.onload = function() {

     // Change the whole window to point to this location
     // we&#039;ll only get down here for people in the Call Center Sales profile
     parent.document.location.href = &quot;/701?fcf=00BF0000006c06w&quot;;
}



Please Wait ..... Loading Campaign Tab



~ Jon</description>
		<content:encoded><![CDATA[<p>Looks like not all of my code got posted, so I&#8217;ll try it again here.  If you still can&#8217;t see it all, it&#8217;s here:<br />
<a href="http://www.tdcorp.org/misc_testing/redirect_some_users_default_tab_for_others.html" rel="nofollow">http://www.tdcorp.org/misc_testing/redirect_some_users_default_tab_for_others.html</a></p>
<p>     window.onload = function() {</p>
<p>     // Change the whole window to point to this location<br />
     // we&#8217;ll only get down here for people in the Call Center Sales profile<br />
     parent.document.location.href = &#8220;/701?fcf=00BF0000006c06w&#8221;;<br />
}</p>
<p>Please Wait &#8230;.. Loading Campaign Tab</p>
<p>~ Jon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mgsmith</title>
		<link>http://www.force2b.net/index.php/2009/06/open-tab-to-default-view/comment-page-1/#comment-17789</link>
		<dc:creator>mgsmith</dc:creator>
		<pubDate>Thu, 15 Dec 2011 13:49:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=251#comment-17789</guid>
		<description>Thanks for sharing!</description>
		<content:encoded><![CDATA[<p>Thanks for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon LaRosa</title>
		<link>http://www.force2b.net/index.php/2009/06/open-tab-to-default-view/comment-page-1/#comment-17770</link>
		<dc:creator>Jon LaRosa</dc:creator>
		<pubDate>Wed, 14 Dec 2011 23:28:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=251#comment-17770</guid>
		<description>Sorry, I solved it with the following:





     window.onload = function() {

     // Change the whole window to point to this location
     // we&#039;ll only get down here for people in the Call Center Sales profile
     parent.document.location.href = &quot;/701?fcf=00BF0000006c06w&quot;;
}



Please Wait ..... Loading Campaign Tab
</description>
		<content:encoded><![CDATA[<p>Sorry, I solved it with the following:</p>
<p>     window.onload = function() {</p>
<p>     // Change the whole window to point to this location<br />
     // we&#8217;ll only get down here for people in the Call Center Sales profile<br />
     parent.document.location.href = &#8220;/701?fcf=00BF0000006c06w&#8221;;<br />
}</p>
<p>Please Wait &#8230;.. Loading Campaign Tab</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon LaRosa</title>
		<link>http://www.force2b.net/index.php/2009/06/open-tab-to-default-view/comment-page-1/#comment-17769</link>
		<dc:creator>Jon LaRosa</dc:creator>
		<pubDate>Wed, 14 Dec 2011 23:18:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=251#comment-17769</guid>
		<description>Hi,

For the view to display, I&#039;m trying to get a view for one profile but the standard tab for all others.  Here&#039;s my relevant section of code:

     var cView;
     switch ( &quot;{!$Profile.Name}&quot; ) {
     case &quot;Call Center Sales&quot;: cView = &quot;/701?fcf=00BF0000006c06w&quot; ; break ;
     default: cView = &quot;/701/o&quot;; break;
     }

Problem is that when it tries to direct a user to the &quot;/701/o&quot; url, the override kicks in and it gets stuck in an endless loop.

I&#039;ve also tried this, but same issue:
cView = &quot;/701/o?sfdc.override=0&quot;

Any ideas?

thanks much,
Jon LaRosa</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>For the view to display, I&#8217;m trying to get a view for one profile but the standard tab for all others.  Here&#8217;s my relevant section of code:</p>
<p>     var cView;<br />
     switch ( &#8220;{!$Profile.Name}&#8221; ) {<br />
     case &#8220;Call Center Sales&#8221;: cView = &#8220;/701?fcf=00BF0000006c06w&#8221; ; break ;<br />
     default: cView = &#8220;/701/o&#8221;; break;<br />
     }</p>
<p>Problem is that when it tries to direct a user to the &#8220;/701/o&#8221; url, the override kicks in and it gets stuck in an endless loop.</p>
<p>I&#8217;ve also tried this, but same issue:<br />
cView = &#8220;/701/o?sfdc.override=0&#8243;</p>
<p>Any ideas?</p>
<p>thanks much,<br />
Jon LaRosa</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mgsmith</title>
		<link>http://www.force2b.net/index.php/2009/06/open-tab-to-default-view/comment-page-1/#comment-17469</link>
		<dc:creator>mgsmith</dc:creator>
		<pubDate>Wed, 07 Dec 2011 14:53:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=251#comment-17469</guid>
		<description>Michael,

I think you&#039;re probably correct on this.  It&#039;s been a couple of years since I wrote that, plus the original idea went back even further. The main problem is that overriding a tab requires a VF page, and I believe each tab would require it&#039;s own VF page. The tab highlighting shouldn&#039;t be affected though because of the tabStyle=&quot;Contact&quot; attribute in the apex:Page tag. Haven&#039;t tested it to be sure. In the blog post example, you could try adding standardController=&quot;Contact&quot; to see if that adds the tab highlighting back. 

Best Regards,

Mike</description>
		<content:encoded><![CDATA[<p>Michael,</p>
<p>I think you&#8217;re probably correct on this.  It&#8217;s been a couple of years since I wrote that, plus the original idea went back even further. The main problem is that overriding a tab requires a VF page, and I believe each tab would require it&#8217;s own VF page. The tab highlighting shouldn&#8217;t be affected though because of the tabStyle=&#8221;Contact&#8221; attribute in the apex:Page tag. Haven&#8217;t tested it to be sure. In the blog post example, you could try adding standardController=&#8221;Contact&#8221; to see if that adds the tab highlighting back. </p>
<p>Best Regards,</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.force2b.net/index.php/2009/06/open-tab-to-default-view/comment-page-1/#comment-16957</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 25 Nov 2011 16:08:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=251#comment-16957</guid>
		<description>Hi,

thanks for this great post, but I wonder if there is a better way to do it now. The solution is great but we lose the tab highlighting and also it is overhead to create a new VF page for a lot of tabs just to redirect them to the custom list view.

Thanks in advance
Michael</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>thanks for this great post, but I wonder if there is a better way to do it now. The solution is great but we lose the tab highlighting and also it is overhead to create a new VF page for a lot of tabs just to redirect them to the custom list view.</p>
<p>Thanks in advance<br />
Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anil</title>
		<link>http://www.force2b.net/index.php/2009/06/open-tab-to-default-view/comment-page-1/#comment-14780</link>
		<dc:creator>Anil</dc:creator>
		<pubDate>Tue, 27 Sep 2011 17:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=251#comment-14780</guid>
		<description>This was great post..</description>
		<content:encoded><![CDATA[<p>This was great post..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jason</title>
		<link>http://www.force2b.net/index.php/2009/06/open-tab-to-default-view/comment-page-1/#comment-10672</link>
		<dc:creator>jason</dc:creator>
		<pubDate>Thu, 24 Jun 2010 23:39:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=251#comment-10672</guid>
		<description>can someone post with their code with all Case fields filled out.

I&#039;ve butchered the above code enough.</description>
		<content:encoded><![CDATA[<p>can someone post with their code with all Case fields filled out.</p>
<p>I&#8217;ve butchered the above code enough.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bidhan</title>
		<link>http://www.force2b.net/index.php/2009/06/open-tab-to-default-view/comment-page-1/#comment-10198</link>
		<dc:creator>Bidhan</dc:creator>
		<pubDate>Tue, 25 May 2010 16:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=251#comment-10198</guid>
		<description>Sorry -- my bad. I had a typo and that caused all the problems.
Works perfectly!!</description>
		<content:encoded><![CDATA[<p>Sorry &#8212; my bad. I had a typo and that caused all the problems.<br />
Works perfectly!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bidhan</title>
		<link>http://www.force2b.net/index.php/2009/06/open-tab-to-default-view/comment-page-1/#comment-10197</link>
		<dc:creator>Bidhan</dc:creator>
		<pubDate>Tue, 25 May 2010 16:03:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=251#comment-10197</guid>
		<description>I couldn&#039;t make this to work -- for some reason the onLoad function is not getting called.So, I get &quot;lease Wait ..... Loading &#039;Your&#039; Tab -- and it stays there. The URL is still:

   https://c.na7.visual.force.com/apex/TestPage?save_new=1&amp;sfdc.override=1

What am I doing wrong?

 Thanks in advance for your help</description>
		<content:encoded><![CDATA[<p>I couldn&#8217;t make this to work &#8212; for some reason the onLoad function is not getting called.So, I get &#8220;lease Wait &#8230;.. Loading &#8216;Your&#8217; Tab &#8212; and it stays there. The URL is still:</p>
<p>   <a href="https://c.na7.visual.force.com/apex/TestPage?save_new=1&amp;sfdc.override=1" rel="nofollow">https://c.na7.visual.force.com/apex/TestPage?save_new=1&amp;sfdc.override=1</a></p>
<p>What am I doing wrong?</p>
<p> Thanks in advance for your help</p>
]]></content:encoded>
	</item>
</channel>
</rss>

