Posts

Showing posts from April, 2019

How to display the records based on choosen picklist value(with out button) in visualforce

Image
<apex:page controller="AccountController2" showHeader="false">  <apex:slds />  <apex:pageMessages /> <apex:form id="test"> <apex:selectList size="1"    style="width:10%;" value="{!selectedIndustry}" styleClass="slds-input" rendered="{!isclicked==false}">                <apex:selectOptions value="{!AccountIndPickValues}"  />              <apex:actionSupport event="onchange" action="{!searchAccountRecords}"/>         </apex:selectList> <br/><br/>         <apex:outputpanel rendered="{!isclicked==true && acc_list.size!=0}" > <table class="slds-table"  width="100%"  align="center"> <tr>   <td style="width:7%;"><b>S.No</b></td>   <td style="width:7%;"><b>Name</b></t

How to display the records based on Picklist value in visualforce

Image
<apex:page controller="AccountController2" showHeader="false">  <apex:slds /> <apex:form id="test"> <apex:selectList size="1"    style="width:10%;" value="{!selectedIndustry}" styleClass="slds-input" rendered="{!isclicked==false}">                <apex:selectOptions value="{!AccountIndPickValues}"  />          </apex:selectList> <br/><br/> <apex:commandButton value="show"   rendered="{!isclicked==false}" styleClass="slds-button slds-button_brand" action="{!searchAccountRecords}"  />         <apex:outputpanel rendered="{!isclicked==true}" > <table class="slds-table"  width="100%" style="margin-left:5px;"> <tr>   <td><b>S.No</b></td>   <td><b>Name</b></td>