You need to sign in to do that
Don't have an account?
how do i create a search page with company and phone search field
<apex:page tabStyle="Account" Controller="SDFindCustomer" id="FindCustomerPage" sidebar="true" showHeader="true" >
<apex:form id="FindCustomer">
<apex:outputPanel id="msgPanel">
<apex:pageMessages ></apex:pageMessages>
</apex:outputPanel>
<apex:pageBlock >
<apex:pageBlockSection id="NamePanel" columns="2">
<apex:outputLabel value="Company Name" for="cname" > </apex:outputLabel>
<apex:inputtext id="cname" value="{!companyName}" />
<apex:outputLabel value="phone No" for="phone" > </apex:outputLabel>
<apex:inputtext id="phone" value="{!phone}" />
</apex:pageBlockSection>
<apex:pageBlockButtons location="bottom">
<apex:commandButton action="{!findLeadsAndAccounts}" value="Find" ID="ENTER_BUTTON" />
</apex:pageBlockButtons>
</apex:pageblock>
</apex:form>
<apex:form id="accountListForm">
<apex:pageBlock >
<apex:pageBlockSection id="AccountPanel" >
<apex:outputPanel id="accTablePanel" >
<apex:pageblocktable value="{!accountList}" var="acc">
<apex:column headerValue="id" >{!acc.id}</apex:column>
<apex:column headerValue="Name" >{!acc.Name}</apex:column>
<apex:column headerValue="Phone" >{!acc.phone}</apex:column>
</apex:pageblocktable>
</apex:outputPanel>
</apex:pageBlockSection>
</apex:pageblock>
</apex:form>
</apex:page>
Here is a good place to start.
http://98.158.189.239/2010/04/07/easily-search-and-edit-records-with-visualforce/
All Answers
Here is a good place to start.
http://98.158.189.239/2010/04/07/easily-search-and-edit-records-with-visualforce/