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
nilesh walkenilesh walke 

. Display data in VF Page and reassign the value by calling a function Output: Name :Satish Myla, Branch:SRNagar, City : Hyd Oncliking “call” button Name :Ravi Branch:LBNagar City : Hyd

public class visualClassQ1 {
    List<EMPLOYEE__c> Emp=[Select Full_Name__c, Branch__c, City__c From EMPLOYEE__c where 
Branch__c='SRNager'];
    Public List<EMPLOYEE__c> getEmp(){
        return Emp;
    }
}
<apex:page controller="visualClassQ1">
    <apex:pageBlock >
    <apex:pageBlockTable value="{!Emp}" var="E">
        <apex:column value="{!E.Full_Name__c }"/>
        <apex:column value="{!E.Branch__c}"/>
        <apex:column value="{!E.City__c}"/>        
        </apex:pageBlockTable>
    </apex:pageBlock>
    
    <apex:form >
    <body >
        <script>
        function call(){
            
            }
        </script>
        <apex:commandButton value="Call" onclick="call()" />
    </body>
</apex:form>          
</apex:page>

want the onclick function logic