• Naveen Kannoju02547126464965992
  • NEWBIE
  • 50 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 12
    Replies
cloud you please give me help for this Question

I retrive the data from account(using custom controller) object and display that data in datatable(vf) format this one is good.
but  here column name for example: name,industry,type,rating.
here whenever i click the name or industry ior any other field name I want to display sort order depending on that field.

Thanks
Naveen
I want to learn lightning component 

please give me some example code for this but not hello world code .

along with steps for execution code

Thanks
Naveen
please help me

What is Component ,where to use,how to create 

please give me total explaination about the component.

Thanks,
Naveen
 
cloud you please explain about the http/rest based and soap based callouts ,what is difference between http/rest and soap based callouts 
when to use which is better to choose .
Hi...
What is Opportunity line item ,what is use of this ,what relationship is there in between product and pricebook2 and opportunity line item.

give me simple solution for above questions .and already i saw the some pdf's but i cann't understanding that.

please give me help for this.

Thanks
Naveen 
please give help for this.

trigger countOnContact on Contact(after insert, after delete)
{
Set<id> accid=new Set<id>();

List<Contact> conlist=new List<Contact>();
List<Contact> listcon=new List<Contact>();

List<Account> acclist=new List<Account>();
List<Account> listacc=new List<Account>();

Map<id ,integer> mapCount=new Map<id,integer>();
   
   if(trigger.isInsert)
   {
      for(Contact con:trigger.new)
      {
      accid.add(con.Accountid);
      }
   }
    if(trigger.isdelete)
   {
      for(Contact con:trigger.old)
      {
      accid.add(con.Accountid);
      }
   }


acclist=[select id,name from Account where id in:accid];
conlist=[select id,name, accountid from Contact where accountid in:accid];
  
   for(Account acc:acclist)
   {
   listcon.clear();
   for(contact c: conlist)
     {
      if(c.accountid==acc.id)
       {
         listcon.add(c);
         mapCount.put(c.accountid,listcon.size());
       }
     }
   }
if(acclist.size()>0)
{
  for(Account a: acclist)
  {
  if(mapCount.get(a.id)==null)
  a.CountOfContacts__c=0;
  else
  a.CountOfContacts__c=mapCount.get(a.id);
  listacc.add(a);
  }

if(listacc.size()>0)
update listacc;
}
}

Thanks
Naveen
Tomorrow  i will have to attended the interview on this topics sales cloud and service cloud.

please help me what type of questions they will be asking and how can i handle the interview . 

Thanks ,
Naveen
 
what is test class and how to write a test classes for Apex and Trigger in salesforce?

please give me deep Explanation about on it.

Thanks,
Naveen
cloud you please give me help for this Question

I retrive the data from account(using custom controller) object and display that data in datatable(vf) format this one is good.
but  here column name for example: name,industry,type,rating.
here whenever i click the name or industry ior any other field name I want to display sort order depending on that field.

Thanks
Naveen
cloud you please give me help for this Question

I retrive the data from account(using custom controller) object and display that data in datatable(vf) format this one is good.
but  here column name for example: name,industry,type,rating.
here whenever i click the name or industry ior any other field name I want to display sort order depending on that field.

Thanks
Naveen
cloud you please explain about the http/rest based and soap based callouts ,what is difference between http/rest and soap based callouts 
when to use which is better to choose .
Hi...
What is Opportunity line item ,what is use of this ,what relationship is there in between product and pricebook2 and opportunity line item.

give me simple solution for above questions .and already i saw the some pdf's but i cann't understanding that.

please give me help for this.

Thanks
Naveen 
please give help for this.

trigger countOnContact on Contact(after insert, after delete)
{
Set<id> accid=new Set<id>();

List<Contact> conlist=new List<Contact>();
List<Contact> listcon=new List<Contact>();

List<Account> acclist=new List<Account>();
List<Account> listacc=new List<Account>();

Map<id ,integer> mapCount=new Map<id,integer>();
   
   if(trigger.isInsert)
   {
      for(Contact con:trigger.new)
      {
      accid.add(con.Accountid);
      }
   }
    if(trigger.isdelete)
   {
      for(Contact con:trigger.old)
      {
      accid.add(con.Accountid);
      }
   }


acclist=[select id,name from Account where id in:accid];
conlist=[select id,name, accountid from Contact where accountid in:accid];
  
   for(Account acc:acclist)
   {
   listcon.clear();
   for(contact c: conlist)
     {
      if(c.accountid==acc.id)
       {
         listcon.add(c);
         mapCount.put(c.accountid,listcon.size());
       }
     }
   }
if(acclist.size()>0)
{
  for(Account a: acclist)
  {
  if(mapCount.get(a.id)==null)
  a.CountOfContacts__c=0;
  else
  a.CountOfContacts__c=mapCount.get(a.id);
  listacc.add(a);
  }

if(listacc.size()>0)
update listacc;
}
}

Thanks
Naveen

When creating a list view with one of the filter criteria "State = ____" (blank/no value) I get the following error when I click the mass edit button.

core.apexpages.exceptions.ApexPagesHandledException: Object type not accessible. Please check permissions and make sure the object is not in development mode: and (State != null)) AND (id IN ^ ERROR at Row:2:Column:6 No such column 'State on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. 

Is there any way to around this?

  • November 04, 2014
  • Like
  • 0
Tomorrow  i will have to attended the interview on this topics sales cloud and service cloud.

please help me what type of questions they will be asking and how can i handle the interview . 

Thanks ,
Naveen
 
what is test class and how to write a test classes for Apex and Trigger in salesforce?

please give me deep Explanation about on it.

Thanks,
Naveen