You need to sign in to do that
Don't have an account?
nilesh 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
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