function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pavan kumar 1156pavan kumar 1156 

can any one explain the debug this please?

<apex:page controller="AccountSelectClassController" sidebar="false">
         <script type="text/javascript">
         function selectAllCheckboxes(obj,receivedInputID)
         var inputCheckBox = document.getElementsByTagName("input");
         for(var i=0; i<inputCheckBox.length; i++)
           inputCheckBox[i].checked = obj.checked;

        <apex:form >
        <apex:pageBlock >
        <apex:pageBlockButtons >
        <apex:commandButton value="Show Selected Accounts" action="{!processSelected}" rerender="table2"/>
        <apex:pageblockSection title="All Accounts" collapsible="false" columns="2">
        <apex:pageBlockTable value="{!wrapAccountList}" var="accWrap" id="table" title="All Accounts">
                  <apex:column >
                  <apex:facet name="header">
                  <apex:inputCheckbox onclick="selectAllCheckboxes(this,'inputId')"/>
                   <apex:inputCheckbox value="{!accWrap.selected}" id="inputId"/>
                    <apex:column value="{!accWrap.acc.Name}" />
                    <apex:column value="{!accWrap.acc.BillingState}" />
                    <apex:column value="{!accWrap.acc.Phone}" />
                <apex:pageBlockTable value="{!selectedAccounts}" var="c" id="table2" title="Selected Accounts">
                    <apex:column value="{!c.Name}" headerValue="Account Name"/>
                    <apex:column value="{!c.BillingState}" headerValue="Billing State"/>
                    <apex:column value="{!c.Phone}" headerValue="Phone"/>
Vinod ChoudharyVinod Choudhary
What Error you are getting and post your class here.
Om PrakashOm Prakash
Hi Pavan,
As I understand you have developed a visualforce page which display all account records initially with checkbox in all row.
When user will click the button "Show Selected Accounts"  then selected accounts will be display on the same Visualforce page.
Let me know exact query or any existing issue?