-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
5Questions
-
8Replies
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.
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 :
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
- siva sai 22
- November 03, 2017
- Like
- 0
- Continue reading or reply
Variable does not exist: LastName
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;
}
}
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;
}
}
- siva sai 22
- September 10, 2017
- Like
- 0
- Continue reading or reply
how to resolve "DML requires SObject or SObject list type: Opportunity" at line no 16
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
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
- siva sai 22
- September 10, 2017
- Like
- 0
- Continue reading or reply
i am getting error in flows like this "Your flow doesn't have a Start element assigned" when i am clicking run button
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
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
- siva sai 22
- August 28, 2017
- Like
- 0
- Continue reading or reply
ITEMS TO BE APPROVED" section is not visible in home page
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
Thanks & Regards
krishna
- siva sai 22
- August 03, 2017
- Like
- 0
- Continue reading or reply
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.
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 :
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
- siva sai 22
- November 03, 2017
- Like
- 0
- Continue reading or reply
Variable does not exist: LastName
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;
}
}
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;
}
}
- siva sai 22
- September 10, 2017
- Like
- 0
- Continue reading or reply
how to resolve "DML requires SObject or SObject list type: Opportunity" at line no 16
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
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
- siva sai 22
- September 10, 2017
- Like
- 0
- Continue reading or reply
ITEMS TO BE APPROVED" section is not visible in home page
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
Thanks & Regards
krishna
- siva sai 22
- August 03, 2017
- Like
- 0
- Continue reading or reply
How to get Assignment rules RuleEntry from Apex
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.
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.
- Yann COLLERY
- July 26, 2017
- Like
- 0
- Continue reading or reply