You need to sign in to do that
Don't have an account?
Shruthi GM 4
How to get related Calls and Opportunities based on the Particular Contact
I need to display Calls and Opportunities based on the selection of Contact.
Do I need to write wrapper class?
Please help me.
Do I need to write wrapper class?
Please help me.
There are various ways through which you can achieve this.
1. Create the following template of wrapper class, declare the list of this type and bind it with the page:
public class SobjectWrapper
{
public Sobject objSobj;
public String sobjname;
}
2. You can create 3 separate lists to hold the related object records such as List<Task>, List<Event> and List<Opportunity>.
Thanks,
Pankaj
I have started writing Wrapper class for opportunity but am facing an error!
Error: Compile Error: line 4:0 no viable alternative at character ''
/*Class*/
public class OpportunityWrapper{
public String Opportunityname{get;set;} ----->here am facing the error!!!!!
public Decimal Amount{get; set;}
public String Stage{get; set;}
public Date Closedate{get; set;}
}
Please help.
How do I write the logic?
Can you please help?