You need to sign in to do that
Don't have an account?

Lookup Filter in Visualforce Page from Controlller
I am getting error from below visualforce page when adding filter to lookup
Error: Could not resolve the entity from <apex:inputField> value binding '{!Reseller.Id}'. <apex:inputField> can only be used with SObjects, or objects that are Visualforce field component resolvable.
Controller
public list<Account> GetReseller(){
return [select id from account where Partner_Type__c = 'RESELLER'];
}
Visual Force
<apex:inputField value="{!Reseller.Id}" id="resler" />
Please suggest me how to add filter to lookup
Thanks
Sudhir
So Sudhir you have kept Reseller as an Input field and are also getting its value from the get method - so Ideally shouldn't it be a output field as you are already calculating its value through the method?