• kri 10
  • NEWBIE
  • 30 Points
  • Member since 2016

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 2
    Questions
  • 2
    Replies
Hiii,
Can any one please help me out in generating report on task object, I am able to display only single object records but i need to display as shown below:.. 
User-added image
Thanks in Advance.
  • April 12, 2016
  • Like
  • 2
Hi, 
  Please tell me how to generate auto generated number to display in VF Page using apex code.

Thanks in advance
  • April 21, 2016
  • Like
  • 0
Hi,
  I am trying to undelete account records using trigger when deleted using Helper class(future call outs) but ending with exception.Please help me out.
Trigger:
         
trigger AccountsDelete on Account (After delete) {
    if(trigger.isDelete)
        if(system.isFuture()==True){
            HttpRequest req = new HttpRequest();
                 req.setTimeout(2000);
            Accounts_Trigger_Helper.DeleteAccount();
        }
}
Helper Class:
                
global class Accounts_Trigger_Helper {
    @future
    global static void DeleteAccount() {
        HttpRequest req = new HttpRequest();
                 req.setTimeout(2000);
        list<account> deletedlist=new list<account>();
        if(trigger.isdelete){
            list<account> deletedacc=new list<account>();
            deletedacc = [select id,name,phone from Account where
IsDeleted=:true  ALL rows];
            system.debug('deletedacc'+deletedacc);
            system.debug('hi');
            /* for(account acclist:trigger.old){
deletedlist.add(acclist);
system.debug('deletedlist'+deletedlist);
}
}*/
            if(!deletedacc.isEmpty()){
                undelete deletedacc;
            }
        }
    }
}
               
Thanks in advance
  • April 21, 2016
  • Like
  • 0
Hi,
  I am trying to undelete account records using trigger when deleted using Helper class(future call outs) but ending with exception.Please help me out.
Trigger:
         
trigger AccountsDelete on Account (After delete) {
    if(trigger.isDelete)
        if(system.isFuture()==True){
            HttpRequest req = new HttpRequest();
                 req.setTimeout(2000);
            Accounts_Trigger_Helper.DeleteAccount();
        }
}
Helper Class:
                
global class Accounts_Trigger_Helper {
    @future
    global static void DeleteAccount() {
        HttpRequest req = new HttpRequest();
                 req.setTimeout(2000);
        list<account> deletedlist=new list<account>();
        if(trigger.isdelete){
            list<account> deletedacc=new list<account>();
            deletedacc = [select id,name,phone from Account where
IsDeleted=:true  ALL rows];
            system.debug('deletedacc'+deletedacc);
            system.debug('hi');
            /* for(account acclist:trigger.old){
deletedlist.add(acclist);
system.debug('deletedlist'+deletedlist);
}
}*/
            if(!deletedacc.isEmpty()){
                undelete deletedacc;
            }
        }
    }
}
               
Thanks in advance
  • April 21, 2016
  • Like
  • 0
Hiii,
Can any one please help me out in generating report on task object, I am able to display only single object records but i need to display as shown below:.. 
User-added image
Thanks in Advance.
  • April 12, 2016
  • Like
  • 2
Hiii,
Can any one please help me out in generating report on task object, I am able to display only single object records but i need to display as shown below:.. 
User-added image
Thanks in Advance.
  • April 12, 2016
  • Like
  • 2