• viswsanath
  • NEWBIE
  • 20 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 58
    Questions
  • 11
    Replies
HI ,

How to count the number of  records on opportunity  associated with on Account ? pls give me exammple ,
kindly help me on this 

viswsanath
HI Exports,

How to get list of partner roles where portal users are disabled(instead of deactivated), Could you please help me .


Regards,
Viswa
Hi All,

i need domenstrate on sales cloud life cycle ,service cloud life cycle  and markating life cycle ?

Regards,
Viswa .
Hi All,
is it possible we can write a soql querys in test class .

Regards,
Viswa:)
Hi All,
By using soql we can retrieve the records 50,000, Now i have 60,000 records how to i can achive this.

Viswam.
Hi All,

How many external id 's we have on each object  in dataloder ?

Regards, viswa
Hi All,

I have 10000 records, then How to we can create the  records for batch wise on batch apex class. 

Kindly help me on this with example code .

Regards,
Thanks.
HI All,

PFB Condtion, i have totaly confuise on this two condtion , What kind of situation we are using on this  two condtion,so any one  please explain me.  

Public Class list<account> acc {get;set;}
public List<Account> accts = new List<Account>();

Regards,
viswa
 
Hi All,

How to refresh an excting sand box in production? i Need the process step by step ..Kindly  don't share the lync .

Any one can help me .

Regards,
viswa
Hi All,
when we want to export data into sf from apex data loader which option should be enable in profile?


Thanks,
viswa.
Hi All,

Am new to schedule apex class . requirement is The class is scheduled to run at 8 AM, on the 13th of February. but i got below this error.
 Any body can help me. why did i came this error . can you please explain me .

Error :Compile Error: Invalid type: mergeNumbers at line 5 column 27

global class scheduledMerge implements Schedulable {
global void execute(SchedulableContext SC) {
 mergeNumbers M = new mergeNumbers();
  String sch = '0 0 8 13 2 ?';
  String jobID = system.schedule('Merge Job', sch, m);
 
   } 
}

Thanks,
Viswa.
Hi All,

I have no idea on batchapex , Any one can  be explain me on how to handle bulk records in background process in batch apex?

Regards,
Viswa.
HI All ,
I have created one login page ,now i would be given the session to the page  after 10 mins it goes to session expire (Logout)? 

How to we will write the code in va page and apex class , please help me any one  .


Thanks,
Viswa 
HI All,
Can you pls help me any one .i 
Here , below i had updated the apex class and test Classs .Now am i tryed to test class.but i got this error near at Constructor .

This is error : [Error] Error: Compile Error: Constructor not defined: [sortpage].<Constructor>() at line 15 column 15

public class sortpage
{
Public List<Account> accList{get; set;}

   public boolean Column1Sort{get;set;}
    public boolean Column2Sort{get;set;}    
    
    public boolean SortAscending{get;set;}
    public boolean SortDescending{get;set;}
    
    public string orderBy{get;set;}
    private String orderByAscDesc {get;set;}
   
    public sortpage(ApexPages.StandardController controller)
    {


        Column1Sort = true;
        Column2Sort = false;

        orderByAscDesc = 'DESC';
        doQuery();
        
    }
   public void doQuery()
   {
       String Q = 'SELECT Name, Phone FROM Account ORDER BY  ';

       if(Column1Sort)
       {
           Q = Q + 'Name '; 
       }
       else if(Column2Sort)
       {
           Q = Q + ' Phone ';
       }
     
       Q = Q + ' ' + orderByAscDesc;
       
       accList = Database.query(Q);
       
   }
   public pageReference sortByColumn1()
   {  
        Column1Sort = true;
        Column2Sort = false;
        
        
        return sortByValue('Column1');
   }
    public pageReference sortByColumn2()
   {  
        Column1Sort = false;
        Column2Sort = true;

        
        return sortByValue('Column2');
   } 
   
   private pageReference sortByValue(string value)
   {
        SortAscending = false;
        SortDescending = false;
        if(orderBy == value)
        {
            if(orderByAscDesc == 'Asc')
            {
                orderByAscDesc = 'Desc';
                SortDescending = true;
            }
            else
            {
                orderByAscDesc = 'Asc';
                SortAscending = true;
            }
        }
        else
        {
            orderByAscDesc = 'Asc';
            SortAscending = true;
        }
        orderBy = value;
        doQuery();  
        return null;
    }
}

TEST CLASS

@istest
public class sortpage_test
{
 static testmethod void testsortpage()
 
  {
  
List<Account> acc = new List<Account>();
Account a=new Account();

a.name='test name';
acc.add(a);

insert acc;
/* sortpage srt=new sortpage();
   srt.doQuery();
   srt.sortByColumn1();
   srt.sortByColumn2();
   srt.sortByValue();*/
ApexPages.StandardController sc = new ApexPages.StandardController(a);
sortpage testAccPlan = new sortpage(sc);
 
}
}





Thanks,
Viswa
Hi All,
what are the main advantages and disadvantages in salesforce ?

What are the future in salesforce ?


Can you pls any one help me ?


Thanks,
Viswa.
HI ALL,

How to call controller method from visualforce page ?Pls Give me one example?

Thanks,
Viswa.
HI All,

whenever we can write 2 triggers on one account it is possible, if possible how to run 1st trigger,2nd trigger? pls explain me .

Thanks,
Viswa
HI Exports,

How to get list of partner roles where portal users are disabled(instead of deactivated), Could you please help me .


Regards,
Viswa
Hi All,
is it possible we can write a soql querys in test class .

Regards,
Viswa:)
I want to get popup box for custom button in VF PageHi All,

What is the difference between Controller and Extension ?

I want to get popup box for custom button in VF Page. I searched in google, it is saying like popup code should be write in Extension controller. Can we write code in controller for dispaly the pupup box ?

Thanks in Advance
Thulasi
Hi All,

How to refresh an excting sand box in production? i Need the process step by step ..Kindly  don't share the lync .

Any one can help me .

Regards,
viswa
HI ALL,

why did we are mention @symbol in test class and also why did we have mentioned istest(seealldata=true ) in test class ?Could you pls expalin me ?what is the reason ?

Thanks,
Viswa.

HI ALL
I got the below error canu pls resolve me .
Error: Compile Error: Illegal assignment from Map<Id,Contact> to Map<Id,viswa.Contact> at line 3 column 5



trigger Email_Check_On_Contact on Contact (before update) {
  Map<Id,Contact> o = new Map<Id,Contact>();
    o = trigger.oldMap;
    for(Contact newcont: trigger.new)
    {
      
        if(newcont.Email != o.get(newcont.Id).Email)
        {
            newcont.Email.addError('Email cannot be changed');
        }
    }
}

Hi,

 

    Are we able  to send a mail at particular time throgh coding..

 

 

 

I have created a custom page for account . How do i get the detail of the account like the full description page as we click on the normal companies page in account Page

 

Regards

Punnoose

Hi,

 

How to refresh the page when we use the pagination. I am having the search funtionality in vf page. If we search, it will dispalys the list of records and if we click on that record it will open the onesecion of data with pagination. And in the same page i have keep the edit link, if we click on the edit it will open the records in editable mode and if we update the value, it will saves in back end and it does not shows me when in vf page first time. If i click on next and then click on previous links it will shows the value. How can i refresh the particualr record which i have edited when i am haivng the pagination.Please help me...

 

Thanks

Hi, Good Morning. can any one help me to solve the following......... I have an object invoice__c. It has only one field name.i would like to add the records into object using VF page. Initiallay, In VF page I have Add button,Save button & a text box. When i click on add button i need to display one more textbox. Like this i can add any number of textboxes. But when i entered data into these textboxes and clicked on save. I would like to add all the names into object in the form of records. That means, each name will be added into object as a record. i need controller class also Can any one help me.