• mds
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 3
    Replies

hey everyone, m new to apex.i dont knw why but m  getting this error:  Incompatible types since an instance of SObject is never an instance of opportunity. plz help.... 

 

 

 

here is a bit of my code:

public with sharing  class opportunityExtensions { 

public opportunity opp;

   public opportunityExtensions(ApexPages.StandardController controller)     {     

  this.opp=(Opportunity)controller.getRecord(); 

     

}


  • September 15, 2011
  • Like
  • 0

 hey guyz

 

i want to add some custom fields to opportunity. The fields are of piclkist type n they get their value at run time through web servicecall...... how can i add such firelds to opportunity... any suggestions...plz help 

  • September 01, 2011
  • Like
  • 0

hey guyz... i dont knw y m facing this problem. when i first executed this code then i did see all the related list of opprtunity... but now  ... when i execute it   wat i see is just the block m creating in this code.... y it is happening ..

plz help!!!!!...

i knw it involves a silly mistake ....

 

 

<apex:page standardController="opportunity">

<apex:form >
<apex:pageBlock title="BLOCK"><apex:pageblockButtons ><apex:commandButton action="{!save}" value="save"/></apex:pageblockButtons><apex:pageBlockSection title="SECTION"><apex:inputField value="{!opportunity.name}"/>
<apex:inputField value="{!opportunity.type}"/>
</apex:pageBlockSection> </apex:pageBlock>

<apex:detail /> 

</apex:form> 

 

</apex:page>

  • August 31, 2011
  • Like
  • 0

is there any way of sharing our application without using appexchange

  • August 30, 2011
  • Like
  • 0

 hey guyz

 

i want to add some custom fields to opportunity. The fields are of piclkist type n they get their value at run time through web servicecall...... how can i add such firelds to opportunity... any suggestions...plz help 

  • September 01, 2011
  • Like
  • 0

hey guyz... i dont knw y m facing this problem. when i first executed this code then i did see all the related list of opprtunity... but now  ... when i execute it   wat i see is just the block m creating in this code.... y it is happening ..

plz help!!!!!...

i knw it involves a silly mistake ....

 

 

<apex:page standardController="opportunity">

<apex:form >
<apex:pageBlock title="BLOCK"><apex:pageblockButtons ><apex:commandButton action="{!save}" value="save"/></apex:pageblockButtons><apex:pageBlockSection title="SECTION"><apex:inputField value="{!opportunity.name}"/>
<apex:inputField value="{!opportunity.type}"/>
</apex:pageBlockSection> </apex:pageBlock>

<apex:detail /> 

</apex:form> 

 

</apex:page>

  • August 31, 2011
  • Like
  • 0