• Pavan Kumar 722
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
I need to restrict View button override based on Record type of Opportunity using page action method using URLFOR function. Based on the record type, I need to rediredt the page to standard detail page or another vfpage. I tried few things, but I can't get this thing working. Somehow i cannot get it to redirect it to standard detail page, what am I doing wrong here?.
 
<apex:page standardController="Opportunity"  action="{!URLFOR(CASE(Opportunity.RecordType.Name, 'RecType1',  '/apex/vfpage1', 'RecType2', 'apex/vfpage1', 'RecType3', $Action.Opportunity.View, '/apex/vfpage1'), Opportunity.Id) }">
     <apex:variable value="{!Order__c.RecordType.Name}" var="recTypeName"/>-
</apex:page>
I used the below references:

http://salesforce.stackexchange.com/questions/33192/how-to-override-edit-button-for-custom-visualforce-page-based-on-recordid/33193#33193
https://salesforce.stackexchange.com/questions/63203/override-standard-edit-button-based-on-recordtype/63252
 
I am trying to place a SOQL statement inside a custom label which will be used in Dynamic Query. I need to reference few other custom labels  inside the SOQL but for some reason these custom labels are appearing as a string value. How do I reference a custom label within a custom label?  Ex: Select Id, Name from Product2 where Product_Ref_Key__c NOT IN(System.Label.ProductReferenceKey1, System.Label.ProductReferenceKey2)
I need to restrict View button override based on Record type of Opportunity using page action method using URLFOR function. Based on the record type, I need to rediredt the page to standard detail page or another vfpage. I tried few things, but I can't get this thing working. Somehow i cannot get it to redirect it to standard detail page, what am I doing wrong here?.
 
<apex:page standardController="Opportunity"  action="{!URLFOR(CASE(Opportunity.RecordType.Name, 'RecType1',  '/apex/vfpage1', 'RecType2', 'apex/vfpage1', 'RecType3', $Action.Opportunity.View, '/apex/vfpage1'), Opportunity.Id) }">
     <apex:variable value="{!Order__c.RecordType.Name}" var="recTypeName"/>-
</apex:page>
I used the below references:

http://salesforce.stackexchange.com/questions/33192/how-to-override-edit-button-for-custom-visualforce-page-based-on-recordid/33193#33193
https://salesforce.stackexchange.com/questions/63203/override-standard-edit-button-based-on-recordtype/63252
 
I need to restrict View button override based on Record type of Opportunity using page action method using URLFOR function. Based on the record type, I need to rediredt the page to standard detail page or another vfpage. I tried few things, but I can't get this thing working. Somehow i cannot get it to redirect it to standard detail page, what am I doing wrong here?.
 
<apex:page standardController="Opportunity"  action="{!URLFOR(CASE(Opportunity.RecordType.Name, 'RecType1',  '/apex/vfpage1', 'RecType2', 'apex/vfpage1', 'RecType3', $Action.Opportunity.View, '/apex/vfpage1'), Opportunity.Id) }">
     <apex:variable value="{!Order__c.RecordType.Name}" var="recTypeName"/>-
</apex:page>
I used the below references:

http://salesforce.stackexchange.com/questions/33192/how-to-override-edit-button-for-custom-visualforce-page-based-on-recordid/33193#33193
https://salesforce.stackexchange.com/questions/63203/override-standard-edit-button-based-on-recordtype/63252
 
I am trying to place a SOQL statement inside a custom label which will be used in Dynamic Query. I need to reference few other custom labels  inside the SOQL but for some reason these custom labels are appearing as a string value. How do I reference a custom label within a custom label?  Ex: Select Id, Name from Product2 where Product_Ref_Key__c NOT IN(System.Label.ProductReferenceKey1, System.Label.ProductReferenceKey2)