• siva sai 22
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 8
    Replies
Hi,
 i created an apex class in that one i want to add each Opportunity in to list of Opportunities but in vf page i am getting an error "Could not resolve the entity from <apex:inputField> value binding '{!Opportunities.Name}'.  <apex:inputField> can only be used with SObjects, or objects that are Visualforce field component resolvable."
Here is my code :
Apex code::
public class Opportunity_List {
    public List<Opportunity> Opportunities {set;get;}
    public Opportunity Oppos {set;get;}
    public Opportunity_List(){
        Opportunities = new List<Opportunity>();
        Oppos = new Opportunity();
    }
    public void add(){
        Opportunities.add(Oppos);
       
    }
    public void cancel(){
        Opportunities.clear();
    }

}
VF Code::
<apex:page controller="Opportunity_List" >
    <apex:form>
    	<apex:pageBlock title="Opportunity">
            <apex:pageBlockButtons>
                	<apex:commandButton value="ADD" action="{!add}" />
                    <apex:commandButton value="Clear" action="{!cancel}" />
                </apex:pageBlockButtons>
        	<apex:pageBlockSection  >
                <apex:inputField value="{!Opportunities.Name}" />
                <apex:inputField value="{!Opportunities.LeadSource}" />
                <apex:inputField value="{!Opportunities.ExpectedRevenue}" />
                <apex:inputField value="{!Opportunities.NextStep}" />
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 

could any one tell me that why it is comming like this..

Thanks and Regards
krishna
 

hi ,
while is inserting the code,i am getting error i.c "Variable does not exist: LastName" .why it is comming like this and my naming convensions is also correct.cany any one help me?
here i am aposting my code error  is in line no 11 to 15(in line no 15 i am getting error like DML requires SObject or SObject list type: lead) can you resolve it ??

public class MyLe {
    public string lastName{set;get;}
    public string com{set;get;}
    public string leadSource{set;get;}
    public string phoe{set;get;}
    
    
    public void create()
    {
              lead le =new lead();
11)                le.LastName=lastName;
12)                le.Company=com;
13)                le.LeadSource=leadSource;
 14)               le.Phone=phoe;
 15)               insert le;        
    }
}
Hi friends i am getting error while i am inserting..here i am posting my code can you please reslove this
public class Opportunity {
          public string name{set;get;}
         public string closedate{set;get;}
         public string stagename{set;get;}
         public boolean isprivate{set;get;}
         public integer amount{set;get;}
         
 public  void create ()
   
    {
        Opportunity opp = new Opportunity();
        opp.Name= name;
        opp.CloseDate=closedate;
        opp.IsPrivate=isprivate;
        opp.Amount=amount;
16)        insert opp;
       
    }
}
thanks & Regards
krishna
Hi,
how to add  "Start element" in flows to activate my flow. I taken a screen in that screen i taken a textbox.when i am clicking RUN button i am getting error like this "Your flow doesn't have a Start element assigned" how to avoid this error..

Thanks & Regards
Krishna
Hi..I created a approval process,the process working fine for intial submitter then while it is going to approval.."ITEMS TO BE APPROVED" section is not visible in home page..and my checkbox is also checked in Home Page Layout..whats the reason and how to reslove this,for remaining users it is working fine in my account..

Thanks & Regards
krishna
Hi,
 i created an apex class in that one i want to add each Opportunity in to list of Opportunities but in vf page i am getting an error "Could not resolve the entity from <apex:inputField> value binding '{!Opportunities.Name}'.  <apex:inputField> can only be used with SObjects, or objects that are Visualforce field component resolvable."
Here is my code :
Apex code::
public class Opportunity_List {
    public List<Opportunity> Opportunities {set;get;}
    public Opportunity Oppos {set;get;}
    public Opportunity_List(){
        Opportunities = new List<Opportunity>();
        Oppos = new Opportunity();
    }
    public void add(){
        Opportunities.add(Oppos);
       
    }
    public void cancel(){
        Opportunities.clear();
    }

}
VF Code::
<apex:page controller="Opportunity_List" >
    <apex:form>
    	<apex:pageBlock title="Opportunity">
            <apex:pageBlockButtons>
                	<apex:commandButton value="ADD" action="{!add}" />
                    <apex:commandButton value="Clear" action="{!cancel}" />
                </apex:pageBlockButtons>
        	<apex:pageBlockSection  >
                <apex:inputField value="{!Opportunities.Name}" />
                <apex:inputField value="{!Opportunities.LeadSource}" />
                <apex:inputField value="{!Opportunities.ExpectedRevenue}" />
                <apex:inputField value="{!Opportunities.NextStep}" />
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 

could any one tell me that why it is comming like this..

Thanks and Regards
krishna
 

hi ,
while is inserting the code,i am getting error i.c "Variable does not exist: LastName" .why it is comming like this and my naming convensions is also correct.cany any one help me?
here i am aposting my code error  is in line no 11 to 15(in line no 15 i am getting error like DML requires SObject or SObject list type: lead) can you resolve it ??

public class MyLe {
    public string lastName{set;get;}
    public string com{set;get;}
    public string leadSource{set;get;}
    public string phoe{set;get;}
    
    
    public void create()
    {
              lead le =new lead();
11)                le.LastName=lastName;
12)                le.Company=com;
13)                le.LeadSource=leadSource;
 14)               le.Phone=phoe;
 15)               insert le;        
    }
}
Hi friends i am getting error while i am inserting..here i am posting my code can you please reslove this
public class Opportunity {
          public string name{set;get;}
         public string closedate{set;get;}
         public string stagename{set;get;}
         public boolean isprivate{set;get;}
         public integer amount{set;get;}
         
 public  void create ()
   
    {
        Opportunity opp = new Opportunity();
        opp.Name= name;
        opp.CloseDate=closedate;
        opp.IsPrivate=isprivate;
        opp.Amount=amount;
16)        insert opp;
       
    }
}
thanks & Regards
krishna
Hi..I created a approval process,the process working fine for intial submitter then while it is going to approval.."ITEMS TO BE APPROVED" section is not visible in home page..and my checkbox is also checked in Home Page Layout..whats the reason and how to reslove this,for remaining users it is working fine in my account..

Thanks & Regards
krishna
Hi,

I need to get all the Assignment rules RuleEntry from apex.
I found the AssignmentRules metadata but I don't understand how to use it.

Would anyone know how to retrieve this information?

Thank you.