I am rendering the dynamic component based on the profile the problem is when its loaded it shows the dynamic component in that not the fields which i have in the dynamic component.Below is the code that i have used.I think i am missing something to add while calling the dynamic component please help.

Below is the code that i have added in the parent component helper:

 doBooleanCheck :function(component,event,helper) {
  var action = component.get('c.isrendered');
 action.setCallback(this, function(response){
        var state = response.getState();
        if (state === "SUCCESS") {
            component.set("v.myBool", response.getReturnValue());
            var boolval=component.get("v.myBool");

                    },function (cmp, status) {
        if (component.isValid() && status === 'SUCCESS') {
            var body = component.get("v.body");
            component.set("v.body", body);    
        } else if (state === "ERROR") {
            alert('Error : ' + JSON.stringify(response.getError()));


1 Answer 1


When you use cmp.set("v.body", ...) to set the component body, you must explicitly include {!v.body} in your component markup.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .