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

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


Basically:
(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" />
</apex:page>

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?
Thanks,
M
Photo of Micael Nussbaumer

Micael Nussbaumer

  • 270 Points 250 badge 2x thumb
  • meh

Posted 3 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,530 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

  • 49,262 Points 20k 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" />

to

<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