• Newbiee
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 4
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 2
    Replies

How can we check the object accessibility on visualforce page?

 

Thanks

 how do i create a search page with company and phone search field:
 
Vf page:
 

<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>