function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
public class FilterLookupController {
public contact con {get; set;}
public List<contact> conlist {get; set;}
public FilterLookupController() {
conlist = new List<contact>();
con = new contact();
}
public PageReference filter() {
conlist = [select id,lastname,firstname,email,accountid from contact where accountid=:con.accountid];
return null;
}
}
<apex:page controller="FilterLookupController">
<apex:form >
<b>Account :</b> <apex:inputField value="{!con.accountid}"/>
<apex:pageblock >
<apex:commandButton action="{!filter}" value="Filter"/>
<apex:pageblockTable value="{!conlist}" var="c">
<apex:column value="{!c.lastname}"/>
<apex:column value="{!c.firstname}"/>
<apex:column value="{!c.email}"/>
<apex:column value="{!c.accountid}"/>
</apex:pageblockTable>
</apex:pageblock>
</apex:form>
</apex:page>