You need to sign in to do that
Don't have an account?
aswanijagadesh1.397398535585991E12
how to get row field values into controller when row is clicked?
hai friends
when i click on a row in visual force page i want to get these field values into controller please any one guide me urgent
<apex:page standardController="Lead" recordSetVar="leads" tabstyle="lead" sidebar="false" extensions="leadclickgenaccount">
<script>
fun()
{
}
</script>
<apex:pageBlock >
<apex:pageBlockTable value="{!leads}" var="ld" onRowClick="fun();">
<apex:column value="{!ld.name}"/>
<apex:column value="{!ld.phone}"/>
<apex:column value="{!ld.email}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
when i click on a row in visual force page i want to get these field values into controller please any one guide me urgent
<apex:page standardController="Lead" recordSetVar="leads" tabstyle="lead" sidebar="false" extensions="leadclickgenaccount">
<script>
fun()
{
}
</script>
<apex:pageBlock >
<apex:pageBlockTable value="{!leads}" var="ld" onRowClick="fun();">
<apex:column value="{!ld.name}"/>
<apex:column value="{!ld.phone}"/>
<apex:column value="{!ld.email}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
go through the below links to learn more :-
https://developer.salesforce.com/page/Wrapper_Class
http://www.minddigital.com/what-is-wrapper-class-and-how-to-use-it-in-salesforce/
http://www.sfdcpoint.com/salesforce/wrapper-class-in-apex/
Hope this helps !!
If this helps,please mark this as best answer to help others :)