• AKASH KUMAR 82
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
This is my apex code how to check in Position object it is working or not.I just want to check after clicking new it must go to IT record type or Non IT Record type
public class c1{
    List <Position__c> pstn = new List<Position__c>();

    public List<Position__c> getpstn(){
        return pstn;
    }

    public PageReference ITReport_pstn(){
        pstn = [select Name__c ,Type__c, Industry__c,  Phone__c from Position__c where Type__c = 'IT Report'];
        return null;
    }

    public PageReference NonITReport_pstn(){
        pstn = [select Name__c , Type__c, Industry__c,Phone__c from Position__c where Type__c = 'NonIT Report'];
        return null;
    }
}
This is my apex code how to check in Position object it is working or not.I just want to check after clicking new it must go to IT record type or Non IT Record type
public class c1{
    List <Position__c> pstn = new List<Position__c>();

    public List<Position__c> getpstn(){
        return pstn;
    }

    public PageReference ITReport_pstn(){
        pstn = [select Name__c ,Type__c, Industry__c,  Phone__c from Position__c where Type__c = 'IT Report'];
        return null;
    }

    public PageReference NonITReport_pstn(){
        pstn = [select Name__c , Type__c, Industry__c,Phone__c from Position__c where Type__c = 'NonIT Report'];
        return null;
    }
}