• Igor Stosic
  • NEWBIE
  • 10 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 2
    Replies
1. When i click on link,and when he open url i want to that link change color on that new page,is that possible?
2. Can we set collapsible page block selection to be default off,like on second picture,not like first? Help please?User-added image
public class Wizard_3a_ControllerNEO4 


{
    Date d = Date.today();

    List<NEO_Employee_request__c> acts=  [ select  Urgency__c,Location__c,SLA__c, Department__c,CreatedById,New_Employee_Name__c,Name,Status__c,Due_date__c,Start_date__c from NEO_Employee_request__c where Urgency__c='Urgent' ORDER BY Name DESC NULLS LAST
];  
    List <NEO_Employee_request__c> acts2= [ select  ID,Urgency__c,Location__c,SLA__c, Department__c,New_Employee_Name__c,Name,Status__c,Due_date__c,Start_date__c from NEO_Employee_request__c where Urgency__c='Regular' ORDER BY Name DESC NULLS LAST];                
    List <NEO_Employee_request__c> acts3=[select  Urgency__c,Location__c,SLA__c, Department__c,New_Employee_Name__c,Name,Status__c,Due_date__c,Start_date__c from NEO_Employee_request__c where (Status__c='new' OR Status__c='Approved' OR Status__c='pending approval'OR Status__c='In Progress'OR Status__c='In progress') AND  Due_date__c < :d ORDER BY Name DESC NULLS LAST];
    List <NEO_Employee_request__c> acts4=[select  Urgency__c,Location__c,SLA__c, Department__c,CreatedById,New_Employee_Name__c,Name,Status__c,Due_date__c,Start_date__c from NEO_Employee_request__c ORDER BY Name DESC NULLS LAST];
List <NEO_Employee_request__c> acts5 = [SELECT    Id,Name
                    FROM   NEO_Employee_request__c];
                   

    public List <NEO_Employee_request__c> getacts5(){
    return acts5;
          }
    
    public List <NEO_Employee_request__c> getacts4(){
    return acts4;
          }
    
    public List <NEO_Employee_request__c> getacts(){
    return acts;
          }
    
          public List <NEO_Employee_request__c> getacts2(){
    return acts2;
          }
    
          public List <NEO_Employee_request__c> getacts3(){
    return acts3;
          }
             
   // public Date Today { get { return Date.today(); }}
    public pagereference Urgent()
{
    acts = [ select  Urgency__c,Location__c, Department__c,New_Employee_Name__c,Name,Status__c,Due_date__c,Start_date__c from NEO_Employee_request__c where Urgency__c='Urgent']; 

return null;
}

public pagereference Regular() {
    acts2 = [ select  ID,Urgency__c,Location__c, Department__c,New_Employee_Name__c,Name,Status__c,Due_date__c,Start_date__c from NEO_Employee_request__c where Urgency__c='Regular'];                


return null; 
}


    
  
public pagereference Due_date ()
{
acts3= [select  Urgency__c,Location__c, Department__c,New_Employee_Name__c,Name,Status__c,Due_date__c,Start_date__c from NEO_Employee_request__c where Status__c='New' and Due_date__c > 2015-05-05];
return null;

}
    public Pagereference hmi()
{
    PageReference ref = new PageReference('https://na24.salesforce.com/a04/e?retURL=%2Fa04%2Fo' + contact.id);
    return ref;
}
  
public Pagereference bmi()
{
    PageReference ref = new PageReference('https://c.na24.visual.force.com/apex/NEORequestByStatus?core.apexpages.request.devconsole=1' + contact.id);
    return ref;
}
  




}
1. When i click on link,and when he open url i want to that link change color on that new page,is that possible?
2. Can we set collapsible page block selection to be default off,like on second picture,not like first? Help please?User-added image