You need to sign in to do that
Don't have an account?
mukesh gupta
Create Component ui:inputCheckbox
Hi Expert ,
I am creating dynamic check boxes that's crated perfect, change event is not working for created check boxes;
when i select any check box then get error
getting error :- Unable to find action 'handleSelectedOLI' on the controller
Please suggest
Regards
Mukesh
I am creating dynamic check boxes that's crated perfect, change event is not working for created check boxes;
when i select any check box then get error
getting error :- Unable to find action 'handleSelectedOLI' on the controller
for(var i = 0; i<5; i++){ $A.createComponent( "ui:inputCheckbox", { "aura:id": "checkBoxOLI", "value":chekboxVal, "change": component.getReference("c.handleSelectedOLI") }, function(newButton, status, errorMessage){ //Add the new button to the body array if (status === "SUCCESS") { var body = component.get("v.body"); //body.push(newButton); component.set("v.body", newButton); } else if (status === "INCOMPLETE") { console.log("No response from server or client is offline.") // Show offline error } else if (status === "ERROR") { console.log("Error: " + errorMessage); // Show error message } } ); handleSelectedOLI: function(component, event, helper) { alert('change ecevt '); },
Please suggest
Regards
Mukesh
Just made some slight changes to your code, please try with the below code:
Let me know if yot still see any issues.
Thanks,
Abhishek Bansal.
It's not working , I missed a currely brace in this code. but not working as per your code
Regards
Mukesh