page assignments: Standard SF page for single User and single Object - View

  • 1
  • Problem
  • Updated 4 years ago
  • Solved
So I successfully overwrote the Opportunity Detail (View) and Lead Detail (View), using the tutorials with custom VF.

(name/label OpportunityDetailsView)
<apex:page standardController="Opportunity" extensions="skuid.Redirects"        showHeader="true" sidebar="true" readonly="true" docType="html-5.0"
        action="{!IF(canUseSkuid,'',redirect)}" title="{!Opportunity.Name}">
    <skuid:page page="OpportunityDetails" actionType="View" />

And then on Op, Buttons & Links & Actions -> View -> Override with SF, pointing to this page.

Then I tried to use page assignments to make an user view the standard SF page for Opportunities but without success.

I've Tried with Object Type -> Opportunity, Applies to User, selecting the user.

I've tried packaging the page assignments, and I've tried with Other as object type and using "OpportunityDetails" as the name & "OpportunityDetailsView", but both still redirected to the skuid page. 

I've also added a global page assignment to use SF standard pages and that also didn't work.
What am I missing here?
Photo of Micael Nussbaumer

Micael Nussbaumer

  • 270 Points 250 badge 2x thumb
  • meh

Posted 4 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 32,370 Points 20k badge 2x thumb
Everything you've done looks right to me.
Skuid, here's a puzzle for you!
Photo of Zach McElrath

Zach McElrath, Employee

  • 54,346 Points 50k badge 2x thumb
Your VF page syntax is wrong, it's a mixture of the "Page Assignment" style and the "Specified Page" style. If you're trying to use Page Assignments on the Opportunity View action, change this part:

<skuid:page page="OpportunityDetails" actionType="View" />


<skuid:page objectType="Opportunity" actionType="View" />

It's the small things :)
Photo of Micael Nussbaumer

Micael Nussbaumer

  • 270 Points 250 badge 2x thumb
Zach - duh!! Thanks for taking the time :) 
It is - always