• ptamk
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi I have two custom objects in my org  Quick_Quote_PRM__c and Payment_Credit__c
 
Both use the standardcontoller to display listview as follows
 
 
This one works
 
 
Code:
<apex:page showHeader="false" standardController="Quick_Quote_PRM__c" recordSetVar="pcs" >

   <apex:form id="theForm">
    <apex:outputLabel value="Select Payment View:" for="selectList"/>&nbsp;
       <apex:selectList value="{!filterId}" size="1" id="selectList">
         <apex:actionSupport event="onchange" rerender="list"/>
         <apex:selectOptions value="{!listviewoptions}"/>
       </apex:selectList>
        
   </apex:form>

</apex:page>

 
But this one doesnt
 
 
 
 
 
Code:
<apex:page showHeader="false" standardController="Payment_Credit__c" recordSetVar="pcs" >

   <apex:form id="theForm">
    <apex:outputLabel value="Select Payment View:" for="selectList"/>&nbsp;
       <apex:selectList value="{!filterId}" size="1" id="selectList">
         <apex:actionSupport event="onchange" rerender="list"/>
         <apex:selectOptions value="{!listviewoptions}"/>
       </apex:selectList>
        
   </apex:form>

</apex:page>

 
And fails with the following error
FROM Payment_Credit__c ORDER BY Name.Alias ASC LIMIT 10000 ^ ERROR at Row:1:Column:43 Didn't understand relationship 'Name' in field path. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
 
As can be seen there is no custom soql. Im not even referencing 'Name' ?
 
 
Is there some way to see what the query is been built by the standard controller ?
 
Any other ideas on how to debug ?
 
Thanks
Paul
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  • November 07, 2008
  • Like
  • 0
Hi I have two custom objects in my org  Quick_Quote_PRM__c and Payment_Credit__c
 
Both use the standardcontoller to display listview as follows
 
 
This one works
 
 
Code:
<apex:page showHeader="false" standardController="Quick_Quote_PRM__c" recordSetVar="pcs" >

   <apex:form id="theForm">
    <apex:outputLabel value="Select Payment View:" for="selectList"/>&nbsp;
       <apex:selectList value="{!filterId}" size="1" id="selectList">
         <apex:actionSupport event="onchange" rerender="list"/>
         <apex:selectOptions value="{!listviewoptions}"/>
       </apex:selectList>
        
   </apex:form>

</apex:page>

 
But this one doesnt
 
 
 
 
 
Code:
<apex:page showHeader="false" standardController="Payment_Credit__c" recordSetVar="pcs" >

   <apex:form id="theForm">
    <apex:outputLabel value="Select Payment View:" for="selectList"/>&nbsp;
       <apex:selectList value="{!filterId}" size="1" id="selectList">
         <apex:actionSupport event="onchange" rerender="list"/>
         <apex:selectOptions value="{!listviewoptions}"/>
       </apex:selectList>
        
   </apex:form>

</apex:page>

 
And fails with the following error
FROM Payment_Credit__c ORDER BY Name.Alias ASC LIMIT 10000 ^ ERROR at Row:1:Column:43 Didn't understand relationship 'Name' in field path. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
 
As can be seen there is no custom soql. Im not even referencing 'Name' ?
 
 
Is there some way to see what the query is been built by the standard controller ?
 
Any other ideas on how to debug ?
 
Thanks
Paul
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  • November 07, 2008
  • Like
  • 0
Hi,
I am trying to create a dynamic pick-list values and populate the selectList component, is there a way to show the component as pick-list view instead of list view?
 
OR
 
Basically what I am trying to do create a dynamic pick-list field but looping thru the a table (ratecard).
 
Any help is greatly appreciated.
 
Thanks,
rk
  • October 16, 2008
  • Like
  • 0