You need to sign in to do that
Don't have an account?
Geoff Spozetta
List Display Custom Object ApexPages.StandardSetController
Hi All,
I've been following a Tutorial on Apex Code development and what I'm looking to acheive is to provide a list of order information from a custom object. The error I'm currently running into is:
My Controller:
I've been following a Tutorial on Apex Code development and what I'm looking to acheive is to provide a list of order information from a custom object. The error I'm currently running into is:
Error: Unknown property 'ApexPages.StandardSetController.Location_ID__c'
My Controller:
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.getQueryLocator( [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(); } }My page:
<apex:page controller="InnovationOrderingController"> <apex:pageBlock title = "Congration"> <apex:pageblockSection columns="1"> <apex:pageBlockTable value="{!orderdets}" var="order" > <apex:datalist var="o" value="{!order.Location_ID__c}"/> </apex:pageBlockTable> </apex:pageblockSection> </apex:pageBlock> </apex:page>
Thanks
Amit Chaudhary
I've updated the class as per your instructions and I'm still running into the same error:
Error: Unknown property 'ApexPages.StandardSetController.Location_ID__c'
Thanks
AMit Chaudhary