• Richard Tuttle
  • NEWBIE
  • 40 Points
  • Member since 2014
  • Solution Architect
  • CRM Science, Inc


  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 0
    Questions
  • 5
    Replies
Hi All,

I'm currently following through a tutorial on how to display some records; I've gotten to a point where I've written the following Controller however I'm running into the following error:

Error: Compile Error: Method does not exist or incorrect signature: Database.getQueryLocater(List<innovation_orders__c>) at line 7 column 61. Full code code is below but the offending line is:
 
orderdets = new ApexPages.StandardSetController(Database.getQueryLocater(

My Code:
public class InnovationOrderingController {
//ApexPages.StandardSetController must be instantiated
//For standard list controllers
    public ApexPages.StandardSetController orderdets {
        get{
        if(orderdets == null) {
            orderdets = new ApexPages.StandardSetController(Database.getQueryLocater(
            [SELECT 
            Additional_Comments__c,
            Construction_Type__c,
            Contract_Signed_Date__c,
            CSA_ID__c,
            customer_site_id__c,
            Location_ID__c,
            Order_Completion_Date__c,
            Order_Status__c,
            Order_Type__c,
            Product_Instance_Number__c,
            Requested_Speed__c,
            Requested_Start_Date__c,
            Service_Status__c,
            site_name__c
            FROM innovation_orders__c]));
    }
    return orderdets;
    }
    set;
    }
//Initalize orderdets and return a list of records
    public List<innovation_orders__c> getOrderDets() {
        return (List<innovation_orders__c>) orderdets.getRecords();
    }
}


For reference, the sample code I'm trying to edit for my own purposes is:
public class opportunityList2Con {
    // ApexPages.StandardSetController must be instantiated
    // for standard list controllers
    public ApexPages.StandardSetController setCon {
        get {
            if(setCon == null) {
                setCon = new ApexPages.StandardSetController(Database.getQueryLocator(
                    [SELECT Name, CloseDate FROM Opportunity]));
            }
            return setCon;
        }
        set;
    }

    // Initialize setCon and return a list of records
    public List<Opportunity> getOpportunities() {
        return (List<Opportunity>) setCon.getRecords();
    }
}


I am not sure if anyone has information on this forum about the Declarative Rollup Summary tool but I figured i would ask. I am getting an error when trying to deploy a new trigger.

I have checked to make sure that a field name didn't change  but outside of that I am not sure why it is querying over the 100 limit. Any help would be greatly appreciated.

Error:
System.LimitException: dlrs:Too many SOQL queries: 101 
Stack Trace: (dlrs) Trigger.dlrs_ContactTrigger: line 7, column 1
Hi All,

I'm currently following through a tutorial on how to display some records; I've gotten to a point where I've written the following Controller however I'm running into the following error:

Error: Compile Error: Method does not exist or incorrect signature: Database.getQueryLocater(List<innovation_orders__c>) at line 7 column 61. Full code code is below but the offending line is:
 
orderdets = new ApexPages.StandardSetController(Database.getQueryLocater(

My Code:
public class InnovationOrderingController {
//ApexPages.StandardSetController must be instantiated
//For standard list controllers
    public ApexPages.StandardSetController orderdets {
        get{
        if(orderdets == null) {
            orderdets = new ApexPages.StandardSetController(Database.getQueryLocater(
            [SELECT 
            Additional_Comments__c,
            Construction_Type__c,
            Contract_Signed_Date__c,
            CSA_ID__c,
            customer_site_id__c,
            Location_ID__c,
            Order_Completion_Date__c,
            Order_Status__c,
            Order_Type__c,
            Product_Instance_Number__c,
            Requested_Speed__c,
            Requested_Start_Date__c,
            Service_Status__c,
            site_name__c
            FROM innovation_orders__c]));
    }
    return orderdets;
    }
    set;
    }
//Initalize orderdets and return a list of records
    public List<innovation_orders__c> getOrderDets() {
        return (List<innovation_orders__c>) orderdets.getRecords();
    }
}


For reference, the sample code I'm trying to edit for my own purposes is:
public class opportunityList2Con {
    // ApexPages.StandardSetController must be instantiated
    // for standard list controllers
    public ApexPages.StandardSetController setCon {
        get {
            if(setCon == null) {
                setCon = new ApexPages.StandardSetController(Database.getQueryLocator(
                    [SELECT Name, CloseDate FROM Opportunity]));
            }
            return setCon;
        }
        set;
    }

    // Initialize setCon and return a list of records
    public List<Opportunity> getOpportunities() {
        return (List<Opportunity>) setCon.getRecords();
    }
}


Hello everyone,
Who faced a XSS (Cross-Site Scripting)?
How can emulate attack XSS in the application?
Or XSS applies only to external web pages?
Hello everyone,
Who faced a XSS (Cross-Site Scripting)?
How can emulate attack XSS in the application?
Or XSS applies only to external web pages?