• shravani mil
  • NEWBIE
  • 60 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 34
    Questions
  • 24
    Replies
unable to cover this method in my test class

    @future (callout=true)
    public static void syncToS(Set<Id> oppIDs){
        
        List<Log__c> errLogs = new List<Log__c>();
        
        for (Id oppId : oppIDs) {
            try {
                GenerateOpptyStageSync.OpptyStageSync(String.valueOf(oppId),'');
            }
            catch(Exception ex) {
               ()
            }
        }
      
        if (errLogs.size() > 0)
            insert errLogs;
    }
    
unable to cover below lines in my test class:

public void onUndelete(List<Opportunity> oldOpps) {
        
        List<AccountShare> acctSharesToAdd = new List<AccountShare>();  
        
        for (Opportunity o : oldOpps) {
            
            ProvideAccShare(o,acctSharesToAdd);
        }
        
        if (acctSharesToAdd.size() > 0)
            insert acctSharesToAdd;
    }
    
Below method is not covering in batch class

global void execute(Database.BatchableContext BC, List<SObject> objs) {
        
        system.debug('What is the 1');
        
        List<PriceBookEntry> PbeList=new List<PriceBookEntry >();
        Set<String> prods=new Set<String>();
        Set<String> pbeids=new Set<String>();
       Map<id,SBQQ__ProductOption__c> prodOptions=new Map<id,SBQQ__ProductOption__c>();
        for(PriceBookEntry pbe:(List<PriceBookEntry>)objs){
          prods.add(pbe.Product2Id);
        
        }
          system.debug('prods--'+prods);
        for(SBQQ__ProductOption__c opt:[select id,SBQQ__ConfiguredSKU__c,OptionalSKU_Product_Codes__c,SBQQ__OptionalSKU__r.ProductCode,PKorCK_Flag__c,
                                                              SBQQ__ProductCode__c,SBQQ__ConfiguredSKU__r.ProductCode,SBQQ__OptionalSKU__c,SBQQ__OptionalSKU__r.name from SBQQ__ProductOption__c where SBQQ__OptionalSKU__c IN :prods]){
            if(opt.PKorCK_Flag__c)
         prodOptions.put(opt.SBQQ__ConfiguredSKU__c,opt);
            
        
        }
       system.debug('prodOptions--'+prodOptions);
        system.debug('prodOptions-size-'+prodOptions.keyset().size());
        PackPricingOptionsTriggerHandler handler=new PackPricingOptionsTriggerHandler();
            Map<String,Set<string>> Optionskus=handler.getChildProducts(prodOptions,'Batch_PBE Update');
           system.debug('optionskusize---'+Optionskus.size()+'optionskue--'+Optionskus.Keyset());
           handler.UpdateConfigureSKUPriceValues(Optionskus);
           

}
if(s.al_Codes__c<>null){
                        if (SalCode==null){
                            SalCode=s.al_Codes__c;
                            SalCode =  Salcode.replace(';', ',');
                            
                        }
                        else{
                            if(!SalCode.contains(s.al_Codes__c))
                                SalCode=SalCode+','+s.al_Codes__c;                                SalCode = Ssalcode.replace(';', ',');                            }
                        }
if(u.Postal_Codes__c<>null){
                        if (SrPostalCode==null){
                            SrPostalCode=u.Postal_Codes__c;
                            SrPostalCode =  SrPostalcode.replace(';', ',');
                            
                        }
                        else{
                            if(!SrPostalCode.contains(u.Postal_Codes__c))
                                SrPostalCode=SrPostalCode+','+u.Postal_Codes__c;
                                SrPostalCode = SrPostalcode.replace(';', ',');
                            }
                        }
Hi i want to display user records by clicking hyper link but its showing url not exists here is my lines

 <apex:outputlink value="/{!ration__c.ep_Name__r.Name}__{!ration__c.Name}">{!ration__c.ep_Name__r.Name}__{!ration__c.Name} </apex:outputlink>  
Hi 

I have a field config_Name__c which is a hyper link formula field.
so i want this in the vf page so that it should appear in the output page and when ever user click that name it should display the user records.

Thanks
shravani mil 
javascript to call method from apex and visualforce page
I have created this page. 
VF Page n class below:  
•         List
•         List_Controller

When I click on the links under C#, it should navigate to the respective Config page. by using Javascript to navigate to the respective pages.

Exp: If I click on C-1 ..it should navigate to the below link. 

C-1  https://na2.salesforce.com.visual.force.com/apex/page_VF?salesrep=9iouyu555689
C-2 https://na2.salesforce.com.visual.force.com/apex/page_VF?salesrep=0854897778hhhj
Hi 
I have two vf page and class VF_ Page VF_Class

When I click on the links under AB#, it should navigate to the respective Config page. how to use  Javascript to navigate to the respective pages.

suppose when i click on AB123 link it should navigate to https://salesforce.com.visual.force.com/apex/VisualForcePage_VF?visualforcepage=0005678799.
 
error: at below line Invalid conversion from runtime type Opportunity to Qill__c

Test Class line:
ApexPages.StandardController sc = new ApexPages.standardController(testOppty);

   Controller  controller = new Controller(sc);

Class line:
 this.q = (Qill__c)stdController.getRecord();
 
private void UpdatingTRegions(Map<String,Opportunity>toUpdateT){
    
        
        Map<String,T__c> terrToTerrDetails= new Map<String,T__c>();

              OTriggerHandler.skipTriggerProcessing = true;
           
            for (T__c t: [select id, T_Id__c, R__c, Sub_R__c, Sub_R2__c from T__c where T_Id__c IN :toUpdateT.KeySet()]) {
                    terrToTerrDetails.put(t.T_Id__c, t);
                            }
            for(Opportunity o:toUpdateT.Values()){
                 o.R__c = terrToTerrDetails.get(o.tid).r__c;
                 o.S_R__c = terrToTerrDetails.get(o.tid).s_r__c;
                 o.S_R2__c = terrToTerrDetails.get(o.tid).s_r2__c;
            }
     
  }
private void saveUpdateAccountChange(Map<Id,Id> oppsChanged, Map<Id,Opportunity> newOpps, Map<Id,Opportunity> oldOpps) {     

        List<Account> accforUpdateList = new List<Account>(); 
        Map<Id,Account> accountMap  = new Map<Id,Account>([Select Id, Dell_Affinity_Id__c From Account Where Id in :oppsChanged.keySet() or id in :oppsChanged.values()]);         
                        
        //  Only Evaluate Logic for Opportunities that are Potentially Changing Their Account & Source Account Has Dell Affinity Id
        for (Id oppId : newOpps.keySet()){
            
            Id accIdOld = oldOpps.get(oppId).AccountId;
            Id accIdNew = newOpps.get(oppId).AccountId;
            
            if (accountMap.get(accIdNew).Dell_Affinity_Id__c == null) {
                
                Account AccUpdate = accountMap.get(accIdNew);
                accUpdate.Dell_Affinity_Id__c = accountMap.get(accIdOld).Dell_Affinity_Id__c;
                accforUpdateList.add(accUpdate);
                
            } else if (accountMap.get(accIdNew).Dell_Affinity_Id__c != accountMap.get(accIdOld).Dell_Affinity_Id__c) {
                
                Trigger.newMap.get(oppId).addError(' Cannot change the Account of an Opportunity if the current and new Accounts have different Affinity Ids.');
            }
         }
    
         if (accforUpdateList.size() > 0)
            update accforUpdateList;
    }
public class Controller {
    private Quote__c q;
    private List<User> usrList;
    public String siebelUserName{get;private set;}
    public String siebelPassword{get;private set;}
    public String qouteName{get;private set;}
    public String seibelServerUrl{get;private set;}
    public String siebelQuoteLocation{get;private set;}
    public String quoteURL
;
    
    // Constructor - this only really matters if the autoRun function doesn't work right
    private final Quote__c o;
    public QuoteVFController(ApexPages.StandardController stdController) {
        this.q = (Quote__c)stdController.getRecord();
    }
     
    // Code we will invoke on page load.
    public PageReference autoRun() {
        qouteName = [select Siebel_Row_Id__c, Name from Quote__c where Id = :ApexPages.currentPage().getParameters().get('id')].Siebel_Row_Id__c;
        Boolean isInternalAccess = false;
        if (qouteName == null) {
            // Display the Visualforce page's content if no Id is passed over
            return null;
        }

        else {
            seibelServerUrl='';
            usrList = [Select Id,Siebel_UserName__c,Siebel_Quote_Location__c from User where Id =: UserInfo.getUserId()];
            siebelUserName = usrList[0].Siebel_UserName__c;
            siebelQuoteLocation = usrList[0].Siebel_Quote_Location__c;
            
            System.debug('siebelQuoteLocation:::'+siebelQuoteLocation);
            
            /* Based on the value of the Quote Location, get a different Custom Setting URL String.If the Quote Location
             on the User record is Blank or NULL then default to the ENU Custom Setting URL string */
            if(siebelQuoteLocation!= null && siebelQuoteLocation == 'ENU'){
                seibelServerUrl = ServerUrl__c.getall().get('siebelServerUrl_ENU').ServerUrl__c;
            } else if (siebelQuoteLocation!= null && siebelQuoteLocation == 'ENG'){
                seibelServerUrl = ServerUrl__c.getall().get('siebelServerUrl_ENG').ServerUrl__c;
            } else if (siebelQuoteLocation!= null && siebelQuoteLocation == 'DEU'){
              seibelServerUrl = ServerUrl__c.getall().get('siebelServerUrl_DEU').ServerUrl__c;
            } else{
              seibelServerUrl = ServerUrl__c.getall().get('siebelServerUrl_ENU').ServerUrl__c;
            }
            System.debug('============== isInternalAccess(before test): ' + isInternalAccess);
            // check to make sure the param was passed
            if (ApexPages.currentPage().getParameters().get('insideNetwork') != null) {
              if (ApexPages.currentPage().getParameters().get('insideNetwork') == 'true')
                isInternalAccess =  true;
            }
            
            System.debug('============== isInternalAccess(after test): ' + isInternalAccess);
             // if the user is not on the network send them to Webthority URL   
              if (!isInternalAccess)
              {
             /* Based on the value of the Quote Location get the appropriate Webthority URL, get a different Custom Setting URL String.If the Quote Location
             on the User record is Blank or NULL then default to the ENU Custom Setting URL string */
            if(siebelQuoteLocation!= null && siebelQuoteLocation == 'ENU'){
                seibelServerUrl = ServerUrl__c.getall().get('webthoritysiebelServerUrl_ENU').ServerUrl__c;
            } else if (siebelQuoteLocation!= null && siebelQuoteLocation == 'ENG'){
                seibelServerUrl = ServerUrl__c.getall().get('webthoritysiebelServerUrl_ENG').ServerUrl__c;
            } else if (siebelQuoteLocation!= null && siebelQuoteLocation == 'DEU'){
              seibelServerUrl = ServerUrl__c.getall().get('webthoritysiebelServerUrl_DEU').ServerUrl__c;
            } else{
              seibelServerUrl = ServerUrl__c.getall().get('webthoritysiebelServerUrl_ENU').ServerUrl__c;
            }
            
             }
             
            if(siebelUserName!=null || siebelUserName!=''){
              
              // create the response object
              if(!Test.isRunningTest())
              {
              
                CastIronUserSync.Provide_ServicePort ci = new CastIronUserSync.Provide_ServicePort();
                siebelPassword = ci.Provide_Service(SiebelUserName);
                System.debug('============== siebelPassword: ' + siebelPassword);
              
              }
              
           }
          
          quoteURL = seibelServerUrl + '?SWECmd=ExecuteLogin&SWEUserName='+siebelUserName+'&'+'SWEPassword='+siebelPassword+'&SWEAC=SWECmd=GotoView&SWEView=Quote+Detail+View&SWEApplet0=Quote+Form+Applet&SWERowId0='+qouteName;
          system.debug('URL-->'+quoteURL);
          PageReference pageRef = new PageReference(quoteURL);
          pageRef.setRedirect(true);
          return pageRef;
        }

    }
 
}
I have a field AccountLookup that must be a hyperlink and it should be in font colour and bolding.can any one suggest how to acheive this.
 Is any way to change the color and bolding of the hyperlink in visual force page  field name 
DMAccount Lookup(which is lookup for Account) and is a hyperlink i want to change the color and bolding of this link can any one suggest.
Hi i have a formula field(Account Plan) which has a hyper link so want to change the color and fonting of the field as soon as we click that field
static testMethod void mytestclass()   
{     
Account a = new Account();     
a.Name = 'Test Account';         
insert a;   
Lead le=new Lead(Email='svreddych@gmail.com', Company='Saksoft',LastName='reddy',Vendor_Business_Contact__c='ass', Contact_Phone__c=111);     
insert le;  [error]   
List<Id> idList = new List<Id>();   
 idList.add(le.Id);     System.debug(idList);   
Database.LeadConvert[] leadsToConvert = new Database.LeadConvert[0];       
 Database.LeadConvert converter = new Database.LeadConvert();         
for (Id l : idList )
{             
converter.setLeadId(l);                //converter.setLeadId(l.id);                System.debug(1);               
account account = new account(name='test');               
insert account;               
converter.setAccountId(account.id);               
contact contact = new contact(firstname='test', lastname='test', accountid=account.id);               
insert contact;               
converter.setContactId(contact.id);                //converter.setOwnerId('00570000000oflK');                converter.setConvertedStatus('Closed - Converted');               
converter.setDoNotCreateOpportunity( true );               
leadsToConvert.add( converter );         
}       
 Database.ConvertLead( leadsToConvert, true );            
}    
}     
am unable to cover the below method in my test class.can any one help me ..

public static void updateChildResponses(map<Id,Lead> leadsMapNew,map<Id,Lead> leadsMapOld){
          list<Response__c> responses = new list<Response__c>();
          map<Id,Response__c> responseRecords = new map<Id,Response__c>();
          system.debug('test itt : '+leadsMapNew);
          system.debug('test it1 : '+leadsMapOld);
          for(Lead ld : leadsMapNew.values()){
          
           // if(ld.Status !=null && leadsMapOld !=null && leadsMapOld.get(ld.Id).Status != null && (((ld.Status)!=leadsMapOld.get(ld.Id).Status) || ((ld.OwnerId)!=leadsMapOld.get(ld.Id).OwnerId) || ((ld.Reason__c)!=leadsMapOld.get(ld.Id).Reason__c))){ //KP Added Reason 
           
           if(ld.Status !=null && leadsMapOld !=null && leadsMapOld.get(ld.Id) != null &&

    leadsMapOld.get(ld.Id).Status != null &&

    (((ld.Status)!=leadsMapOld.get(ld.Id).Status) ||

    ((ld.OwnerId)!=leadsMapOld.get(ld.Id).OwnerId) ||

    ((ld.Reason__c)!=leadsMapOld.get(ld.Id).Reason__c))){

   

           
           
               for(Response__c resp :[Select OwnerId, Status__c, Status_Date__c,Lead__c,Reason_LAI__c,Sales_Accepted__c, Sales_Accepted_Date__c,(Select OwnerId, Status__c, Status_Date__c,Lead__c, Reason_LAI__c,Sales_Accepted__c, Sales_Accepted_Date__c From  Related_Responses__r),Id From Response__c where Lead__c IN : leadsMapNew.keySet()]){ // Added Sales Accepted field
            responseRecords.put(resp.Id,resp);
          }
            }
          }
          if(responseRecords.size() > 0){
            
            for(Response__c resp : responseRecords.values()){
            System.debug('resp:::'+resp);
              if(leadsMapNew.containsKey(resp.Lead__c)){
                String status = leadsMapNew.get(resp.Lead__c).Status;
                String reason = leadsMapNew.get(resp.Lead__c).Reason__c;
                Date SalesAcceptedDate = leadsMapNew.get(resp.Lead__c).Sales_Accepted_Date__c;
                for(Response__c childResp:resp.Related_Responses__r){
                  System.debug('resp:::inside inner loop'+resp);
                  System.debug('childResp:::'+childResp);
                  if(!responseRecords.containsKey(childResp.Id)){
                    if(SalesAcceptedDate <> null && childResp.Sales_Accepted__c == false)
                    {
                        childResp.Sales_Accepted__c = true;
                        childResp.Sales_Accepted_Date__c = SalesAcceptedDate;
                    }
                    childResp.Status__c = status;
                    childResp.Reason_LAI__c = reason;
                    childResp.Status_Date__c = System.today();
                    childResp.OwnerId = leadsMapNew.get(resp.Lead__c).OwnerId;
                    responses.add(childResp);
                  }
                }
                if(SalesAcceptedDate <> null && Resp.Sales_Accepted__c == false)
                {
                    resp.Sales_Accepted__c = true;
                    resp.Sales_Accepted_Date__c = SalesAcceptedDate;
                }
                resp.Status__c = status;
                resp.Reason_LAI__c = reason;
                resp.Status_Date__c = System.today();
                resp.OwnerId = leadsMapNew.get(resp.Lead__c).OwnerId; 
              }
              responses.add(resp);
              
            }
            System.debug('responses:::'+responses); 
            Database.update(responses);
          }
        }        
list out of bond error at line 

 String userId = leadUsrStr.split('_')[1];
Hi


  @future
    public static void addLeadShares(Set<String> leadUserIds){
      List<ErrorLog__c> errLogs = new List<ErrorLog__c>();
      List<LeadShare> leadShares = new List<LeadShare>();
      for(String leadUsrStr : leadUserIds){
        
        String leadId = leadUsrStr.split('_')[0];
        String userId = leadUsrStr.split('_')[1];
        LeadShare ld = new LeadShare(LeadId = leadId, UserOrGroupId = userId, LeadAccessLevel = 'Read');
        leadShares.add(ld);
        
      }
      Database.SaveResult[] inRes = Database.insert(leadShares);
      // fetch LeadShare Id, then fetch LeadId from Map and add error to that lead, to stop the lead 
    // from further processing.
      for(Integer i=0;i<inRes.size();i++){
      if(!inRes[i].isSuccess()){
        errLogs.add(Utils.getErrorLogObj('Class : LeadTAHelper', 'LeadTAHelper : Error in LeadShare Insertion' + inRes[i].getErrors()[0].getMessage(), 'High'));
      }
    }
    insert errLogs;
    }

Thanks.
unable to cover below lines in my test class:

public void onUndelete(List<Opportunity> oldOpps) {
        
        List<AccountShare> acctSharesToAdd = new List<AccountShare>();  
        
        for (Opportunity o : oldOpps) {
            
            ProvideAccShare(o,acctSharesToAdd);
        }
        
        if (acctSharesToAdd.size() > 0)
            insert acctSharesToAdd;
    }
    
if(s.al_Codes__c<>null){
                        if (SalCode==null){
                            SalCode=s.al_Codes__c;
                            SalCode =  Salcode.replace(';', ',');
                            
                        }
                        else{
                            if(!SalCode.contains(s.al_Codes__c))
                                SalCode=SalCode+','+s.al_Codes__c;                                SalCode = Ssalcode.replace(';', ',');                            }
                        }
Hi i want to display user records by clicking hyper link but its showing url not exists here is my lines

 <apex:outputlink value="/{!ration__c.ep_Name__r.Name}__{!ration__c.Name}">{!ration__c.ep_Name__r.Name}__{!ration__c.Name} </apex:outputlink>  
Hi 

I have a field config_Name__c which is a hyper link formula field.
so i want this in the vf page so that it should appear in the output page and when ever user click that name it should display the user records.

Thanks
shravani mil 
javascript to call method from apex and visualforce page
I have created this page. 
VF Page n class below:  
•         List
•         List_Controller

When I click on the links under C#, it should navigate to the respective Config page. by using Javascript to navigate to the respective pages.

Exp: If I click on C-1 ..it should navigate to the below link. 

C-1  https://na2.salesforce.com.visual.force.com/apex/page_VF?salesrep=9iouyu555689
C-2 https://na2.salesforce.com.visual.force.com/apex/page_VF?salesrep=0854897778hhhj
Hi 
I have two vf page and class VF_ Page VF_Class

When I click on the links under AB#, it should navigate to the respective Config page. how to use  Javascript to navigate to the respective pages.

suppose when i click on AB123 link it should navigate to https://salesforce.com.visual.force.com/apex/VisualForcePage_VF?visualforcepage=0005678799.
 
private void UpdatingTRegions(Map<String,Opportunity>toUpdateT){
    
        
        Map<String,T__c> terrToTerrDetails= new Map<String,T__c>();

              OTriggerHandler.skipTriggerProcessing = true;
           
            for (T__c t: [select id, T_Id__c, R__c, Sub_R__c, Sub_R2__c from T__c where T_Id__c IN :toUpdateT.KeySet()]) {
                    terrToTerrDetails.put(t.T_Id__c, t);
                            }
            for(Opportunity o:toUpdateT.Values()){
                 o.R__c = terrToTerrDetails.get(o.tid).r__c;
                 o.S_R__c = terrToTerrDetails.get(o.tid).s_r__c;
                 o.S_R2__c = terrToTerrDetails.get(o.tid).s_r2__c;
            }
     
  }
private void saveUpdateAccountChange(Map<Id,Id> oppsChanged, Map<Id,Opportunity> newOpps, Map<Id,Opportunity> oldOpps) {     

        List<Account> accforUpdateList = new List<Account>(); 
        Map<Id,Account> accountMap  = new Map<Id,Account>([Select Id, Dell_Affinity_Id__c From Account Where Id in :oppsChanged.keySet() or id in :oppsChanged.values()]);         
                        
        //  Only Evaluate Logic for Opportunities that are Potentially Changing Their Account & Source Account Has Dell Affinity Id
        for (Id oppId : newOpps.keySet()){
            
            Id accIdOld = oldOpps.get(oppId).AccountId;
            Id accIdNew = newOpps.get(oppId).AccountId;
            
            if (accountMap.get(accIdNew).Dell_Affinity_Id__c == null) {
                
                Account AccUpdate = accountMap.get(accIdNew);
                accUpdate.Dell_Affinity_Id__c = accountMap.get(accIdOld).Dell_Affinity_Id__c;
                accforUpdateList.add(accUpdate);
                
            } else if (accountMap.get(accIdNew).Dell_Affinity_Id__c != accountMap.get(accIdOld).Dell_Affinity_Id__c) {
                
                Trigger.newMap.get(oppId).addError(' Cannot change the Account of an Opportunity if the current and new Accounts have different Affinity Ids.');
            }
         }
    
         if (accforUpdateList.size() > 0)
            update accforUpdateList;
    }
public class Controller {
    private Quote__c q;
    private List<User> usrList;
    public String siebelUserName{get;private set;}
    public String siebelPassword{get;private set;}
    public String qouteName{get;private set;}
    public String seibelServerUrl{get;private set;}
    public String siebelQuoteLocation{get;private set;}
    public String quoteURL
;
    
    // Constructor - this only really matters if the autoRun function doesn't work right
    private final Quote__c o;
    public QuoteVFController(ApexPages.StandardController stdController) {
        this.q = (Quote__c)stdController.getRecord();
    }
     
    // Code we will invoke on page load.
    public PageReference autoRun() {
        qouteName = [select Siebel_Row_Id__c, Name from Quote__c where Id = :ApexPages.currentPage().getParameters().get('id')].Siebel_Row_Id__c;
        Boolean isInternalAccess = false;
        if (qouteName == null) {
            // Display the Visualforce page's content if no Id is passed over
            return null;
        }

        else {
            seibelServerUrl='';
            usrList = [Select Id,Siebel_UserName__c,Siebel_Quote_Location__c from User where Id =: UserInfo.getUserId()];
            siebelUserName = usrList[0].Siebel_UserName__c;
            siebelQuoteLocation = usrList[0].Siebel_Quote_Location__c;
            
            System.debug('siebelQuoteLocation:::'+siebelQuoteLocation);
            
            /* Based on the value of the Quote Location, get a different Custom Setting URL String.If the Quote Location
             on the User record is Blank or NULL then default to the ENU Custom Setting URL string */
            if(siebelQuoteLocation!= null && siebelQuoteLocation == 'ENU'){
                seibelServerUrl = ServerUrl__c.getall().get('siebelServerUrl_ENU').ServerUrl__c;
            } else if (siebelQuoteLocation!= null && siebelQuoteLocation == 'ENG'){
                seibelServerUrl = ServerUrl__c.getall().get('siebelServerUrl_ENG').ServerUrl__c;
            } else if (siebelQuoteLocation!= null && siebelQuoteLocation == 'DEU'){
              seibelServerUrl = ServerUrl__c.getall().get('siebelServerUrl_DEU').ServerUrl__c;
            } else{
              seibelServerUrl = ServerUrl__c.getall().get('siebelServerUrl_ENU').ServerUrl__c;
            }
            System.debug('============== isInternalAccess(before test): ' + isInternalAccess);
            // check to make sure the param was passed
            if (ApexPages.currentPage().getParameters().get('insideNetwork') != null) {
              if (ApexPages.currentPage().getParameters().get('insideNetwork') == 'true')
                isInternalAccess =  true;
            }
            
            System.debug('============== isInternalAccess(after test): ' + isInternalAccess);
             // if the user is not on the network send them to Webthority URL   
              if (!isInternalAccess)
              {
             /* Based on the value of the Quote Location get the appropriate Webthority URL, get a different Custom Setting URL String.If the Quote Location
             on the User record is Blank or NULL then default to the ENU Custom Setting URL string */
            if(siebelQuoteLocation!= null && siebelQuoteLocation == 'ENU'){
                seibelServerUrl = ServerUrl__c.getall().get('webthoritysiebelServerUrl_ENU').ServerUrl__c;
            } else if (siebelQuoteLocation!= null && siebelQuoteLocation == 'ENG'){
                seibelServerUrl = ServerUrl__c.getall().get('webthoritysiebelServerUrl_ENG').ServerUrl__c;
            } else if (siebelQuoteLocation!= null && siebelQuoteLocation == 'DEU'){
              seibelServerUrl = ServerUrl__c.getall().get('webthoritysiebelServerUrl_DEU').ServerUrl__c;
            } else{
              seibelServerUrl = ServerUrl__c.getall().get('webthoritysiebelServerUrl_ENU').ServerUrl__c;
            }
            
             }
             
            if(siebelUserName!=null || siebelUserName!=''){
              
              // create the response object
              if(!Test.isRunningTest())
              {
              
                CastIronUserSync.Provide_ServicePort ci = new CastIronUserSync.Provide_ServicePort();
                siebelPassword = ci.Provide_Service(SiebelUserName);
                System.debug('============== siebelPassword: ' + siebelPassword);
              
              }
              
           }
          
          quoteURL = seibelServerUrl + '?SWECmd=ExecuteLogin&SWEUserName='+siebelUserName+'&'+'SWEPassword='+siebelPassword+'&SWEAC=SWECmd=GotoView&SWEView=Quote+Detail+View&SWEApplet0=Quote+Form+Applet&SWERowId0='+qouteName;
          system.debug('URL-->'+quoteURL);
          PageReference pageRef = new PageReference(quoteURL);
          pageRef.setRedirect(true);
          return pageRef;
        }

    }
 
}
I have a field AccountLookup that must be a hyperlink and it should be in font colour and bolding.can any one suggest how to acheive this.
 Is any way to change the color and bolding of the hyperlink in visual force page  field name 
DMAccount Lookup(which is lookup for Account) and is a hyperlink i want to change the color and bolding of this link can any one suggest.
Hi i have a formula field(Account Plan) which has a hyper link so want to change the color and fonting of the field as soon as we click that field
am unable to cover the below method in my test class.can any one help me ..

public static void updateChildResponses(map<Id,Lead> leadsMapNew,map<Id,Lead> leadsMapOld){
          list<Response__c> responses = new list<Response__c>();
          map<Id,Response__c> responseRecords = new map<Id,Response__c>();
          system.debug('test itt : '+leadsMapNew);
          system.debug('test it1 : '+leadsMapOld);
          for(Lead ld : leadsMapNew.values()){
          
           // if(ld.Status !=null && leadsMapOld !=null && leadsMapOld.get(ld.Id).Status != null && (((ld.Status)!=leadsMapOld.get(ld.Id).Status) || ((ld.OwnerId)!=leadsMapOld.get(ld.Id).OwnerId) || ((ld.Reason__c)!=leadsMapOld.get(ld.Id).Reason__c))){ //KP Added Reason 
           
           if(ld.Status !=null && leadsMapOld !=null && leadsMapOld.get(ld.Id) != null &&

    leadsMapOld.get(ld.Id).Status != null &&

    (((ld.Status)!=leadsMapOld.get(ld.Id).Status) ||

    ((ld.OwnerId)!=leadsMapOld.get(ld.Id).OwnerId) ||

    ((ld.Reason__c)!=leadsMapOld.get(ld.Id).Reason__c))){

   

           
           
               for(Response__c resp :[Select OwnerId, Status__c, Status_Date__c,Lead__c,Reason_LAI__c,Sales_Accepted__c, Sales_Accepted_Date__c,(Select OwnerId, Status__c, Status_Date__c,Lead__c, Reason_LAI__c,Sales_Accepted__c, Sales_Accepted_Date__c From  Related_Responses__r),Id From Response__c where Lead__c IN : leadsMapNew.keySet()]){ // Added Sales Accepted field
            responseRecords.put(resp.Id,resp);
          }
            }
          }
          if(responseRecords.size() > 0){
            
            for(Response__c resp : responseRecords.values()){
            System.debug('resp:::'+resp);
              if(leadsMapNew.containsKey(resp.Lead__c)){
                String status = leadsMapNew.get(resp.Lead__c).Status;
                String reason = leadsMapNew.get(resp.Lead__c).Reason__c;
                Date SalesAcceptedDate = leadsMapNew.get(resp.Lead__c).Sales_Accepted_Date__c;
                for(Response__c childResp:resp.Related_Responses__r){
                  System.debug('resp:::inside inner loop'+resp);
                  System.debug('childResp:::'+childResp);
                  if(!responseRecords.containsKey(childResp.Id)){
                    if(SalesAcceptedDate <> null && childResp.Sales_Accepted__c == false)
                    {
                        childResp.Sales_Accepted__c = true;
                        childResp.Sales_Accepted_Date__c = SalesAcceptedDate;
                    }
                    childResp.Status__c = status;
                    childResp.Reason_LAI__c = reason;
                    childResp.Status_Date__c = System.today();
                    childResp.OwnerId = leadsMapNew.get(resp.Lead__c).OwnerId;
                    responses.add(childResp);
                  }
                }
                if(SalesAcceptedDate <> null && Resp.Sales_Accepted__c == false)
                {
                    resp.Sales_Accepted__c = true;
                    resp.Sales_Accepted_Date__c = SalesAcceptedDate;
                }
                resp.Status__c = status;
                resp.Reason_LAI__c = reason;
                resp.Status_Date__c = System.today();
                resp.OwnerId = leadsMapNew.get(resp.Lead__c).OwnerId; 
              }
              responses.add(resp);
              
            }
            System.debug('responses:::'+responses); 
            Database.update(responses);
          }
        }        
list out of bond error at line 

 String userId = leadUsrStr.split('_')[1];