Overriding a 'tasks' tab - standardController error for VF page

  • 1
  • Question
  • Updated 2 years ago
  • Answered
I'm having a little trouble creating a salesforce tab named tasks which redirects to a Skuid page with some task tables. The tasks are not linked to a specific record so I've made a VF page using 'Task' as the standardController. I'm getting the error:

Error: List controllers are not supported for Task
I'm sure I'm doing something daft here... Any ideas? Thanks!

Here's my VF page:
<apex:page standardController="Task" recordSetVar="c"
extensions="skuid.Redirects" action="{!redirect}?page=TaskTab"> </apex:page>
Photo of Louis Skelton

Louis Skelton

  • 4,786 Points 4k badge 2x thumb
  • tremendous

Posted 5 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,004 Points 20k badge 2x thumb
Hi Louis,

Nothing "daft", this is actually tricky since, as you've noticed, the Task object does not support standard overrides of the List or Tab actions.

What you'll need to do is the following (some of which you've probably already done):

  1. Modify your VF Page to have this override syntax:
    <apex:page controller="skuid.Redirects" action="{!redirect}&page=TaskTab"/>
  2. Create a new Visualforce Tab that is associated with this VF Page.
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,004 Points 20k badge 2x thumb
Jared, change your override code to use a ? instead of a & right before page=TaskTab:

<apex:page controller="skuid.Redirects" action="{!redirect}?page=TaskTab"/>
Photo of Jared Jones

Jared Jones

  • 2,214 Points 2k badge 2x thumb
Thanks, Zach!  That did the trick.  And thanks to Karen as well.  Probably a good time to update the skuid version in production anyway.
Photo of Jared Jones

Jared Jones

  • 2,214 Points 2k badge 2x thumb
Spoke too soon.  The visualforce page works on its own.  However, when I try to access from a visualforce tab, I get this:

You've been INKED! (Something went wrong)
Skuid was unable to redirect the user to standard Salesforce Page Layouts, and no Skuid Page could be used instead.

Visualforce config (I noticed in Karen's screenshot that her VF page has a skuid namespace.  Don't see a way to add that.)



Here's the visualforce page when previewed:



Here's the tab config:



And what happens when I try to use the tab:



This happens when logged in as system administrator.  I have enabled all profiles for this visualforce page.

I get the same results in both the sandbox (v 8.19.5) and production (v 7.27)
Photo of Jared Jones

Jared Jones

  • 2,214 Points 2k badge 2x thumb
Spoke too soon.  The visualforce page works on its own.  However, when I try to access from a visualforce tab, I get this:

You've been INKED! (Something went wrong)
Skuid was unable to redirect the user to standard Salesforce Page Layouts, and no Skuid Page could be used instead.

Visualforce config (I noticed in Karen's screenshot that her VF page has a skuid namespace.  Don't see a way to add that.)



Here's the visualforce page when previewed:



Here's the tab config:



And what happens when I try to use the tab:



This happens when logged in as system administrator.  I have enabled all profiles for this visualforce page.

I get the same results in both the sandbox (v 8.19.5) and production (v 7.27)
Photo of Jared Jones

Jared Jones

  • 2,214 Points 2k badge 2x thumb
See previous comment for screenshots and error details.  Visualforce preview of Skuid page is working, but the VF tab is not cooperating.
Photo of Louis Skelton

Louis Skelton

  • 4,786 Points 4k badge 2x thumb
Worked perfectly thanks - almost got there!
Photo of Brandon Klapholz

Brandon Klapholz

  • 390 Points 250 badge 2x thumb
Worked perfectly for me, too.