The above link has an implementation of handing the selected records to apex controller class.
you have two option:
Send only the accRecmId to your Server method like this:
JS Controller:
var selectedList = component.get('v.pricingRecommendationListDetailsData');
var ids=new Array();
for (var i= 0 ; i < selectedList.length ; i++){
ids.push(selectedList[i].accRecmId);
}
var idListJSON=JSON.stringify(ids);
var action = component.get("c.callServier");
action.setParams({
"accRecmId":idListJSON
});
Apex Controller:
public static void callServier(String accRecmId) {
Type idArrType = Type.forName('List<string>');
List<string> wrapperList = (List<string>) JSON.deserialize(accRecmId, idArrType);
}
Pass all attribute to your apex controller and inside your apex controller get the accRecmId.
Let me know if it helps you and close your query by marking it as the best answer so that it can help others in the future.
Hi
You can take references from the below Link.
https://developer.salesforce.com/forums/?id=9062I000000ITAOQA4
https://salesforce.stackexchange.com/questions/325757/not-able-to-select-checkbox-value-in-the-lightning-input-tag
https://www.forcetalks.com/salesforce-topic/in-salesforce-how-do-i-get-the-value-of-a-uiinputcheckbox-lightning-component/
Please mark it as the Best Answer if it helps you.
Thank You
All Answers
Hi
You can take references from the below Link.
https://developer.salesforce.com/forums/?id=9062I000000ITAOQA4
https://salesforce.stackexchange.com/questions/325757/not-able-to-select-checkbox-value-in-the-lightning-input-tag
https://www.forcetalks.com/salesforce-topic/in-salesforce-how-do-i-get-the-value-of-a-uiinputcheckbox-lightning-component/
Please mark it as the Best Answer if it helps you.
Thank You
>> https://www.infallibletechie.com/2018/08/how-to-handle-selectedrows-in.html
The above link has an implementation of handing the selected records to apex controller class.
Let me know if it helps you and close your query by marking it as the best answer so that it can help others in the future.
Thanks.