You need to sign in to do that
Don't have an account?
wixxey
Getting Specific rows in Datatable using JavaScript in Salesforce
I am working with visualforce pages. I am using datatable in page and i have used a checkbox in each row in datatable, now i want to get only those rows whose checkbox values is true, the code is given below.
<apex:page controller="searchDuplicate"> <apex:pageBlock title="Searching for Duplicate Contacts Record"> <center> <apex:form> <apex:dataTable id="dTable" value="{!selectedContactList}" var="cn" border="1" cellpadding="5"> <apex:column headerValue="Name" value="{!cn.Name}" /> <apex:column headerValue="Email" value="{!cn.Email}" /> <apex:column headerValue="Select"> <apex:inputCheckbox/> </apex:column> </apex:dataTable> <apex:commandButton value= "Delete Selected"/> </apex:form> </center> </apex:pageBlock> </apex:page>
kindly help
Hi,
You have to take one string variable "strSelectedIds" in your controller and using javascript you can get the value of selected contactid to this variable in your controller.
Public sting strSelectedIds {get; set;}
Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.
Thank You,
Hitesh Patel
SFDC Certified Developer & Administrator
All Answers
Hi,
You have to take one string variable "strSelectedIds" in your controller and using javascript you can get the value of selected contactid to this variable in your controller.
Public sting strSelectedIds {get; set;}
Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.
Thank You,
Hitesh Patel
SFDC Certified Developer & Administrator
http://wiki.developerforce.com/page/Wrapper_Class