• Sunil Chandel 2
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
Suppose i am writing a a trigger handler class on opportunity..
if for one opportunity i need to change the account owner,, how it will be done using trigger..
how can i compare old and new value.

i am trying to write in the following way..
please suggest

public void updateAccountowner(list<opportunity> opportunities, map<id, opportunity> mapoldopportunity)
   {
    for(Opportunity opp:opportunities)
   {
      if(mapoldopportunity.get(opp.id).Amount!=='' && opp.amount!=='')
     {
     
     }
   }
   }

 
Hi Experts,
<apex:page standardController="Account">  <apex:form >
<apex:pageBlock >

<apex:pageBlockSection columns="3">
 
<apex:inputField value="{!Account.customer_type__c}" required="false"/> 
<apex:inputField value="{!Account.A__c}" required="false"/>
<apex:inputField value="{!Potential__c}" required="false"/>
 

</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>


I have a requirement to show 3 fields in a column in page section. As per standard Salesforce page permission it’s allow us only 2 field in a single column. I wrote Visualforce page and imbedded in Standard page layout but it looks edit page.
Please help me, my primary objective is to show 3 field in Single column and I can see them in edit and detail page both.