Component : Controller : ({ doInit : function(component, event, helper) { var accountId = component.get(\"v.accountId\"); var ids=new Array(); for (var i= 0 ; i < accountId.length ; i++){ ids.push(accountId[i]); } var idListJSON=JSON.stringify(ids); var action = component.get(\"c.updateStatus\"); action.setParams({ \"idsListValues\":idListJSON }); action.setCallback(this, function(actionResult) { var state = actionResult.getState(); if(state === \"SUCCESS\") { var toastEvent = $A.get(\"e.force:showToast\"); toastEvent.setParams({ \"title\": \"Succés\", \"message\": \"helloo\", \"type\": \"success\" }); toastEvent.fire(); } }); $A.enqueueAction(action); } })",
"answerCount": 4,
"upvoteCount": 0,
"datePublished": "2021-05-18T04:06:24.000Z",
"author": {
"@type": "Person",
"name": "Yeturu Srikanth",
"url": "https://trailblazers.salesforce.com/profileView?u=0053A00000E7UCRQA3",
"affiliation": {
"@type": "Organization",
"name": "bigworks"
}
},
"suggestedAnswer": [
{
"@type": "Answer",
"text": "public class LighteningComponentControllerList { @AuraEnabled public static void updateStatus(String idsListValues){ List