+ Start a Discussion
Anand@SAASAnand@SAAS 

Visual force error when viewing "Partner Accounts" from a List view

I am using hte example from the developer guide below:

 

<apex:page standardController="Account" recordSetvar="accounts">
  <apex:pageBlock title="Viewing Accounts">
  <apex:form id="theForm">
    <apex:panelGrid columns="2">
      <apex:outputLabel value="View:"/>
      <apex:selectList value="{!filterId}" size="1">
        <apex:actionSupport event="onchange" rerender="list"/>
        <apex:selectOptions value="{!listviewoptions}"/>
      </apex:selectList>
    </apex:panelGrid>
    <apex:pageBlockSection >
      <apex:dataList var="a" value="{!accounts}" id="list">
        {!a.name}
      </apex:dataList>
    </apex:pageBlockSection>
  </apex:form> 
  </apex:pageBlock>
</apex:page>

 I have a list view defined that use the criteria "Partner Account is not empty". When I select this list view in my visual force page I get the following error:

 

LastName FROM Account WHERE (((ACCOUNT.IS_PARNTER != FALSE))) ^ ERROR at Row:1:Column:106 No such column 'IS_PARNTER' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.

 

 

aamDevaamDev

I think you just misspelled partner in ACCOUNT.IS_PARNTER != FALSE

Pradeep_NavatarPradeep_Navatar

Have you enabled the partner portal access for your org? The Ispartner field will not be available until at least one Partner Portal will be defined.  Check your Field API name, in case you have already the partner portal access.

 

Hope this helps.