You need to sign in to do that
Don't have an account?
Claire Domingo
hide an opportunity record from owner ( custom coding )
Need advise for any possible custom coding or alternative solution for hiding an opportunity record from the owner.Any help is most appreciated.
<apex:page standardController="Opportunity">
<apex:detail rendered="{!$User.Id!=Opportunity.OwnerId}" subject="{!Opportunity.Id}" relatedlist="true"/>
<apex:outputText rendered="{!$User.Id==Opportunity.OwnerId}">You ar not authorized to view this page</apex:outputText>
</apex:page>
</pre>
All Answers
Thanks in advance.
<apex:page standardController="Opportunity">
<apex:detail rendered="{!$User.Id!=Opportunity.OwnerId}" subject="{!Opportunity.Id}" relatedlist="true"/>
<apex:outputText rendered="{!$User.Id==Opportunity.OwnerId}">You ar not authorized to view this page</apex:outputText>
</apex:page>
</pre>
This is a good start for me! This code would hide just the page visibilty of the record but not completely removing him as the record owner right?