Skip to main content

Hello everyone!

I need help with a problem that I have. 

I have two sandbox with the same lightning component and the same code,I compare with clickdeploy.io, BUT, In one sandbox is working fine when doInit initialize, but in the other sandbox is not working. There are two components related, the parent component and the child. The parent component doInit method is working fine, but the child component is not working, It doesn't even run the doInit of the child component. This causes the functionality does not load correctly. The strange thing is that in one sandbox it works correctly but in the other it doesn't, even though it has the same code and components.

 

Code of sandbox 1

 

Cmp

 

<aura:component implements="lightning:actionOverride,force:lightningQuickAction,force:hasRecordId,flexipage:availableForAllPageTypes" controller="OM_ActionPlanTemplateCreationController">

    <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> 

    <aura:attribute name="taskdependencyList" type="String[]"/>

    <aura:attribute name="TemplateID" type="String"/>

    <aura:attribute name="aptwrapper" type="OM_APT_TaskTemplate__c[]" />   

    <aura:attribute name="apt" type="OM_Action_Plan_Template__c" default="{'sobject':'OM_Action_Plan_Template__c'}"/> 

    <aura:handler name="deleteRowEvent" event="c:OM_DeleteRowEvent" action="{!c.removeRows}"/>

 

...... More code

 

                        <tbody>

                            <aura:iteration items="{!v.aptwrapper}" var="item" indexVar="index">

                                <c:OM_APTRowItem Apt="{!item}" AptTemplate="{!v.aptwrapper}" rowIndex="{!index}" taskId="{!item.id}" TemplateID="{!v.TemplateID}"/>

                            </aura:iteration>                                           

                        </tbody>

 

Code of sandbox 2

 

<aura:component implements="lightning:actionOverride,force:lightningQuickAction,force:hasRecordId,flexipage:availableForAllPageTypes" controller="OM_ActionPlanTemplateCreationController">

    <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> 

    <aura:attribute name="taskdependencyList" type="String[]"/>

    <aura:attribute name="TemplateID" type="String"/>

    <aura:attribute name="aptwrapper" type="OM_APT_TaskTemplate__c[]" />   

    <aura:attribute name="apt" type="OM_Action_Plan_Template__c" default="{'sobject':'OM_Action_Plan_Template__c'}"/> 

    <aura:handler name="deleteRowEvent" event="c:OM_DeleteRowEvent" action="{!c.removeRows}"/>

    

...... More code

 

                        <tbody>

                            <aura:iteration items="{!v.aptwrapper}" var="item" indexVar="index">

                                <c:OM_APTRowItem Apt="{!item}" AptTemplate="{!v.aptwrapper}" rowIndex="{!index}" taskId="{!item.id}" TemplateID="{!v.TemplateID}"/>

                            </aura:iteration>                                           

                        </tbody>

 

The problem is when aura:iteration call other component, in the sandbox 2 does not load and sandbox 1 does load. If someone has happened I appreciate the support or if you have any idea how to solve this problem.

 

I am attaching the screenshot of each sandbox.

 

Thank you

0/9000