1

In my Lightning component, I have some problems from the Access Checks:

Access Check Failed! AttributeSet.get(): attribute 'visible' of component 'markup://ui:panel {30:1185;a}' is not visible to 'markup://c:ConsultationQueue {2257:0}'.

Access Check Failed! Component.method():'markup://ui:update' is not visible to 'markup://c:ConsultationQueue {2257:0}'.

Access Check Failed! AttributeSet.get(): attribute 'visible' of component 'markup://force:hoverPrototype {461:8;a}' is not visible to 'markup://c:ConsultationQueue {2257:0}'.

Access Check Failed! Component.getEvent():'notify' of component 'markup://ui:modal {64:685;a}' is not visible to 'markup://c:ConsultationQueue {638:0}'.

Access Check Failed! Component.getEvent():'notify' of component 'markup://ui:modal {940:0}' is not visible to 'markup://c:ConsultationQueue {638:0}'.

The only component created by me is "c:ConsultationQueue", when I uncheck the "Enable Debug Mode" for Lightning Components in sandbox Salesforce, I don't have these warrnings/errors any more. Is anyone know why I have access checks to ui:modal, force:hoverPrototype, ui:panel etc and how I can resolve them ?

Here is ConsultationQueue.cmp, I have almost the same embedded Visualforce Page(iframe) in tab-scoped-1" and tab-scoped-2", the error arrives only when I show "tab-scoped-2", so I suppose the problem is not come from the iframe(visualforce page)

<aura:component implements="force:appHostable" controller="UserSearch">
<ltng:require styles="/resource/SLDS0121/assets/styles/salesforce-lightning-design-system-ltng.css" />
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
<aura:attribute name="UserInfo" type="Object" />
<aura:attribute name="accountQueue" type="List" />
<aura:attribute name="webOrderHistory" type="List" />
<aura:attribute name="ShowShopQueue" type="Boolean" default="true" />
<aura:attribute name="domainName" type="String" />
<aura:attribute name="spinnerIsVisibile" type="Boolean" default='false'/>
<aura:handler event="c:ShowLoaderEvt" action="{!c.ShowLoaderEvt}"/>

<div class="slds">
    <div class="slds-tabs--scoped">
        <div>
            <ul class="slds-tabs--scoped__nav ul-list" role="tablist" >
                <li class="slds-tabs--scoped__item slds-text-heading--label slds-active" title="{!$Label.c.Queue_02}" 
                    role="presentation" id="tab-scoped-1__item" onclick="{!c.showTab1}">
                    <a class="slds-tabs--scoped__link" role="tab" tabindex="0" aria-selected="true" aria-controls="tab-scoped-1" >{!$Label.c.Queue_02}</a></li>
                <li class="slds-tabs--scoped__item slds-text-heading--label" title="{!$Label.c.Queue_03}" onclick="{!c.showTab2}"
                    role="presentation" id="tab-scoped-2__item">
                    <a class="slds-tabs--scoped__link" role="tab" tabindex="-1" aria-selected="false" aria-controls="tab-scoped-2" >{!$Label.c.Queue_03}</a></li>
            </ul>
        </div>
        <div id="tab-scoped-1" class="slds-show" role="tabpanel" aria-labelledby="tab-scoped-1__item">
            <div class="queue-container">
                <ul class="timeline">
                    <aura:iteration items="{!v.accountQueue}" var="row" indexVar="index">
                        <c:AccountQueue queue="{!row}"/>
                    </aura:iteration>
                </ul>
            </div>
            <aura:if isTrue="{!v.domainName != null}">
                <iframe src="{!v.domainName + '/apex/QueueChangeNotification'}" name="queue_notification"/>
            </aura:if>
        </div>
        <div id="tab-scoped-2" class="slds-hide" role="tabpanel" aria-labelledby="tab-scoped-2__item">
            <div class="slds-timeline__item">
                <ui:inputSelect value="0" class="slds-select time-picklist" aura:id="range" change="{!c.changeTimeRange}">
                    <ui:inputSelectOption text="-7" label="{!$Label.c.Queue_14}"/>
                    <ui:inputSelectOption text="0" label="{!$Label.c.Queue_12}"/>
                    <ui:inputSelectOption text="7" label="{!$Label.c.Queue_13}"/>
                </ui:inputSelect>
            </div>
            <div class="queue-container-web">
                <ul class="timeline">
                    <aura:iteration items="{!v.webOrderHistory}" var="row" indexVar="index">
                        <c:OrderHistoryWeb queue="{!row}"/>
                    </aura:iteration>
                </ul>
            </div>
            <aura:if isTrue="{!v.domainName != null}">
                <iframe src="{!v.domainName + '/apex/OrderWebNotification'}" name="OrderWeb_notification"/>
            </aura:if>
        </div>
    </div>
    <div class="notification-spinner"><ui:spinner isVisible="{!v.spinnerIsVisibile}" aura:id="loading-spinner"/></div>
</div>

Here is OrderHistoryWeb.cmp

<aura:component implements="force:appHostable" controller="UserSearch" access="global">
<aura:attribute name="queue" type="SEN_Order_History__c" access="global"/>
<aura:registerEvent name="ChangeView" type="c:ChangeView"/>
<div class="slds">
    <li class="slds-timeline__item">
        <div class="slds-media">
            <div class="slds-media__body">
                <div class="slds-media slds-media--timeline slds-timeline__media--task">
                    <div class="slds-media__figure">
                        <c:svgIcon class="slds-icon slds-icon-action-share-thanks" svgPath="/resource/SLDS0121/assets/icons/standard-sprite/svg/symbols.svg#thanks" category="product" size="medium" />
                    </div>
                    <div class="slds-media__body">
                        <div class="slds-media">
                          <div class="slds-media__body">
                            <p class="slds-truncate">
                                <aura:if isTrue="{!v.queue.Account_Name__r.Salutation != null}" >
                                    <span class="sex slds-tile__title slds-truncate">{!v.queue.Account_Name__r.Salutation}</span>
                                </aura:if>
                                <span>{!v.queue.Account_Name__r.Name}</span>
                            </p>
                            <ul class="slds-list--horizontal slds-wrap">
                              <li class="slds-m-right--large">
                                <span class="sex tile__label slds-text-heading--label-normal">{!$Label.c.Queue_09}</span>
                                <span class="slds-text-body--small">
                                    <ui:outputDateTime value="{!v.queue.Collect_Date_Hour__c}" timezone="Europe/Paris" langLocale="en" format="EEEE dd/MM/YY HH"/>h 
                                 </span>
                              </li>
                              <li class="slds-m-right--large">
                                <span class="sex tile__label slds-text-heading--label-normal">{!$Label.c.Queue_10}</span>
                                <span class="slds-text-body--small">{!v.queue.Nb_Order_Items__c}</span>
                              </li>
                              <li class="slds-m-right--large">
                                <span class="sex tile__label slds-text-heading--label-normal">{!$Label.c.Queue_11}</span>
                                <span class="slds-text-body--small">
                                    <ui:outputCurrency value="{!v.queue.Total_Order_Amount__c}" format=".00"/>{!v.queue.CurrencyIsoCode}</span>
                              </li>
                            </ul>
                          </div>
                        </div>
                      </div>
                    <div class="slds-media__figure slds-media__figure--reverse">
                        <div style="float:right; margin-right:1rem">
                            <c:ConfirmCollectPopup queue="{!v.queue}"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </li>
</div>

Here is ConfirmCollectPopup.cmp

<aura:component controller="UserSearch" access="global">
<ltng:require styles="/resource/SLDS0121/assets/styles/salesforce-lightning-design-system-ltng.css" />
<aura:attribute name="queue" type="SEN_Order_History__c" access="global"/>
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
<aura:registerEvent name="ShowLoaderEvt" type="c:ShowLoaderEvt"/>

<ui:button aura:id="button" label="" press="{!c.openPopup}" class="slds-button slds-button--brand slds-x-small-button--stacked">{!$Label.c.Queue_04}</ui:button>
<div class="slds-hide" id="{!'confirmCollectPopup' + v.queue.Id}">
    <div class="slds-modal slds-fade-in-open" aria-hidden="false" role="dialog" >
        <div class="slds-modal__container">
            <div class="slds-modal__header">

                <c:button onclick="{!c.closePopup}" class="slds-button slds-button--icon-inverse slds-modal__close"
                          svgXlinkHref="/resource/SLDS0121/assets/icons/utility-sprite/svg/symbols.svg#close" 
                          svgClass="slds-button__icon slds-button__icon--large" />
                <h2 class="slds-text-heading--small">
                    <div class="slds-tile__detail order-history-summary">
                      <dl class="slds-dl--horizontal">
                        <dt class="slds-dl--horizontal__label">
                          <p class="slds-truncate" title="Company">{!$Label.c.Queue_08}</p>
                        </dt>
                        <dd class="slds-dl--horizontal__detail slds-tile__meta">
                          <p class="slds-truncate" title="Salesforce">{!v.queue.Account_Name__r.Name}</p>
                        </dd>
                        <dt class="slds-dl--horizontal__label">
                          <p class="slds-truncate" title="Email">{!$Label.c.Queue_09}</p>
                        </dt>
                        <dd class="slds-dl--horizontal__detail slds-tile__meta">
                          <p class="slds-truncate">
                            <ui:outputDateTime value="{!v.queue.Collect_Date_Hour__c}" timezone="Europe/Paris" langLocale="en" format="EEEE dd/MM/YY HH"/>h
                          </p>
                        </dd>
                        <dt class="slds-dl--horizontal__label">
                          <p class="slds-truncate" title="Email">{!$Label.c.Queue_18}</p>
                        </dt>
                        <dd class="slds-dl--horizontal__detail slds-tile__meta">
                          <p class="slds-truncate" >
                            <ui:outputCurrency value="{!v.queue.Total_Order_Amount__c}" format=".00"/>
                            {!v.queue.CurrencyIsoCode}
                          </p>
                        </dd>
                        <dt class="slds-dl--horizontal__label">
                          <p class="slds-truncate" title="Email">{!$Label.c.Queue_19}</p>
                        </dt>
                        <dd class="slds-dl--horizontal__detail slds-tile__meta">
                          <p class="slds-truncate" >
                            <ui:outputDateTime value="{!v.queue.CreatedDate}" timezone="Europe/Paris" langLocale="en" format="EEEE dd/MM/YY HH:MM"/>
                          </p>
                        </dd>
                      </dl>
                    </div>
                </h2>
            </div>
            <div class="slds-modal__content">
                <table class="slds-table slds-table--bordered slds-table--cell-buffer">
                <tr>
                    <th><span class="slds-truncate">{!$Label.c.Queue_16}</span></th>
                    <th><span class="slds-truncate">{!$Label.c.Queue_17}</span></th>
                </tr>
                <aura:iteration items="{!v.queue.Order_History_Items__r.records}" var="row">
                    <tr>
                        <td><span class="slds-truncate">{!row.Product__r.Name}</span></td>
                        <td><span class="slds-truncate">{!row.Quantity__c}</span></td>
                    </tr>
                </aura:iteration>
                </table>
            </div>
            <div class="slds-modal__footer">
                <div class="slds-grid slds-grid--align-spread buttons-container">
                    <ui:button press="{!c.confirmCollect}" class="slds-col--padded slds-button slds-button--brand">{!$Label.c.Queue_05}</ui:button>
                    <ui:button press="{!c.closePopup}" class="slds-col--padded slds-button slds-button--brand">{!$Label.c.Queue_06}</ui:button>
                </div>

            </div>
        </div>
    </div>
    <div class="slds-backdrop slds-backdrop--open"></div>
</div>

  • Please share full code of component so we can assist you – Mohith Shrivastava Sep 21 '16 at 12:44
0

Make sure your ConsultationQueue component does not have dependency on undocumented components that you might have hacked .Winter 17 puts a strict restriction on the access modifiers .You wont be able to access anything undocumented or private .

Check the video here

The guidelines to resolve this are documented here .Without much access to your code it will be hard to tell what is going wrong here but its clear that your custom components have dependency on some of the markups which cannot be accessed by c:ConsultationQueue

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.