• Ramadhar Mishra 24
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
I am seeing two header while switch to lightning and hit Account Tab.

A record page created for 'Account' object from Lightning App Builder.  
This page only assign to one profile. While login and hit 'Account' tab it shows two header.

Any one else face this issue earlier. 

Code as collows

<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId"  controller="customer360" access="global">
    <aura:attribute name="recordId" type="Id" />
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/> 
    <aura:attribute name="objInfo" type="account" default="{sobjectType : 'Account'}" />
    <aura:attribute name="searchResult" type="Account[]" description="use for store and display account list return from server"/>
    <aura:attribute name="optyResult" type="Opportunity[]" description="use for store and display Opportunities list return from server"/>
    <aura:attribute name="caseResult" type="Case[]" description="use for store and display Cases list return from server"/>
    <aura:attribute name="agreementResult" type="Apttus__APTS_Agreement__c[]" description="use for store and display agreements list return from server"/>
    <aura:attribute name="contactResult" type="Contact[]" description="use for store and display Cases list return from server"/>
    <aura:attribute name="searchKeyword" type="String" description="use for store user search input"/>
    <aura:attribute name="Message" type="boolean" default="false" description="use for display no record found message"/>
    <aura:attribute name="numberOfRecord" type="integer" default="0" description="use for display Number of records"/>   
    <aura:attribute name="accountName" type="String"/>
   
   <div class="slds-m-around--large">
       <div class="slds-section-title--divider">
       <lightning:icon iconName="standard:account" size="medium" alternativeText="Account Name" />&nbsp;Account
       <div class="slds-text-heading--medium"><b>{!v.accountName}</b></div>
       </div>    
       <div class="slds-page-header"> 
       <table class="slds-table slds-table_bordered slds-table_cell-buffer">
           <thead>
            <tr>
               <th scope="col">
                  <b>Industry</b>
               </th>
               <th scope="col">
                  <b>Initial Go Live</b>
               </th>
               <th scope="col">
                  <b>Initial Deployment Approval</b>
               </th>
               <th scope="col">
                  <b>RVP</b>
               </th>
               <th scope="col">
                  <b>Customer Executive Sponsor</b>
               </th> 
               <th scope="col">
                  <b>Deployment Partner</b>
               </th>  
               <th scope="col">
                  <b>Who Deployed</b>
               </th>  
               <th scope="col">
                  <b>Workday Integration</b>
               </th>   
               <th scope="col">
                  <b>Deal Summary</b>
               </th>    
            </tr>
         </thead>
         <tbody>
            <aura:if isTrue="{!v.Message}">
               <div class="slds-text-color--error"> No Result Found...</div>
            </aura:if>
            <aura:iteration items="{!v.searchResult}" var="acc">
               <tr> 
                  <td>
                     <div class="slds-truncate uiOutputText">{!acc.Industry}</div>
                  </td>
                  <td>
                     <div class="slds-truncate uiOutputText">{!acc.Initial_Go_Live_Date__c}</div>
                  </td>
                  <td>
                     <div class="slds-truncate uiOutputText">{!acc.Initial_Deployment_Approach__c}</div>
                  </td>
                  <td>
                     <div class="slds-truncate">{!acc.Services_RVP__c}</div>
                  </td>  
                  <td>
                     <div class="slds-truncate">{!acc.Workday_Executive_Sponsor__c}</div>
                  </td>  
                  <td>
                     <div class="slds-truncate"></div>
                  </td>   
                   <td>
                     <div class="slds-truncate"></div>
                  </td>   
                    <td>
                     <div class="slds-truncate"></div>
                  </td>   
                    <td>
                     <div class="slds-truncate"></div>
                  </td>   
               </tr>
            </aura:iteration>
         </tbody>
      </table>
  <div>
</div>
    <div class="slds-tabs--scoped">
      <ul class="slds-tabs--scoped__nav" role="tablist">
         <li aura:id="detailId" class="slds-tabs--scoped__item  slds-active customClassForTab" title="Detail" role="presentation" ><a class="slds-tabs--scoped__link" href="javascript:void(0);" onclick="{!c.detailTab}" role="tab" tabindex="0" aria-selected="false" aria-controls="tab-default-1" id="Detail_linking">Detail</a></li>
         <li aura:id="supHealthStsId"  class="slds-tabs--scoped__item  customClassForTab" title="Support Health Status" role="presentation"><a class="slds-tabs--scoped__link" href="javascript:void(0);" onclick="{!c.supHlthStsTab}" role="tab" tabindex="-1" aria-selected="true" aria-controls="tab-default-2" id="supHlthStsId_linking">Opportunities</a></li>
         <li aura:id="agrmtId" class="slds-tabs--scoped__item  customClassForTab" title="Agreements" role="presentation"><a class="slds-tabs--scoped__link" href="javascript:void(0);" onclick="{!c.agrmTab}" role="tab" tabindex="-2" aria-selected="false" aria-controls="tab-default-3" id="agrmt_linking">Agreements</a></li>
         <li aura:id="casesId" class="slds-tabs--scoped__item  customClassForTab" title="Cases" role="presentation"><a class="slds-tabs--scoped__link" href="javascript:void(0);" onclick="{!c.casesTab}" role="tab" tabindex="-2" aria-selected="false" aria-controls="tab-default-3" id="cases_linking">Cases</a></li>
         <li aura:id="contactId" class="slds-tabs--scoped__item  customClassForTab" title="Cases" role="presentation"><a class="slds-tabs--scoped__link" href="javascript:void(0);" onclick="{!c.contactTab}" role="tab" tabindex="-2" aria-selected="false" aria-controls="tab-default-4" id="contacts_linking">Contacts</a></li>
       </ul>
      <div name="tabdataName" aura:id="detailTabDataId" id="tab-default-1" class="slds-tabs--scoped__content slds-show customClassForTabData" role="tabpanel" aria-labelledby="Detail_linking">
         <ul>
             <force:recordView recordId="{!v.recordId}" type="FULL"/>
         </ul>
      </div>
      <div name="tabdataName" aura:id="supHlthStsTabDataId" id="tab-default-2" class="slds-tabs--scoped__content slds-hide customClassForTabData" role="tabpanel" aria-labelledby="supHlthStsId_linking">
         <ul>
            <table class="slds-table slds-table_bordered slds-table_cell-buffer">
           <thead>
            <tr>
               <th scope="col">
                  <b>Name</b>
               </th>
               <th scope="col">
                  <b>Amount</b>
               </th>
               <th scope="col">
                  <b>Stage</b>
               </th>
              </tr>
         </thead>
         <tbody>
            <aura:if isTrue="{!v.Message}">
               <div class="slds-text-color--error"> No Result Found...</div>
            </aura:if>
            <aura:iteration items="{!v.optyResult}" var="opp">
               <tr> 
                  <td>
                     <div class="slds-truncate uiOutputText">{!opp.Name}</div>
                  </td>
                  <td>
                     <div class="slds-truncate uiOutputText">{!opp.Amount}</div>
                  </td>
                  <td>
                     <div class="slds-truncate uiOutputText">{!opp.Stage}</div>
                  </td>
                </tr>
            </aura:iteration>
         </tbody>
      </table>
         </ul>
      </div>
      <div name="tabdataName" aura:id="agrmTabDataId" id="tab-default-3" class="slds-tabs--scoped__content slds-hide customClassForTabData" role="tabpanel" aria-labelledby="agrmt_linking">
         <ul>
           <table class="slds-table slds-table_bordered slds-table_cell-buffer">
           <thead>
            <tr>
               <th scope="col">
                  <b>Name</b>
               </th>
               <th scope="col">
                  <b>Active</b>
               </th> 
                <th scope="col">
                  <b>Agreement Bookings</b>
               </th>
               <th scope="col">
                  <b>Activated By</b>
               </th>
               <th scope="col">
                  <b>Activated Date</b>
               </th>
               <th scope="col">
                  <b>Activated Date</b>
               </th>
              </tr>
         </thead>
         <tbody>
            <aura:if isTrue="{!v.Message}">
               <div class="slds-text-color--error"> No Result Found...</div>
            </aura:if>
            <aura:iteration items="{!v.agreementResult}" var="agrm">
               <tr> 
                  <td>
                     <div class="slds-truncate uiOutputText">{!agrm.Name}</div>
                  </td>
                  <td>
                     <div class="slds-truncate uiOutputText">{!agrm.Active__c}</div>
                  </td> 
                  <td>
                     <div class="slds-truncate uiOutputText">{!agrm.Agreement_Bookings__c}</div>
                  </td>
                  <td>
                     <div class="slds-truncate uiOutputText">{!agrm.Apttus__Activated_By__r.Name}</div>
                  </td>
                  <td>
                     <div class="slds-truncate uiOutputText">{!agrm.Apttus__Activated_Date__c}</div>
                  </td> 
                </tr>
            </aura:iteration>
         </tbody>
      </table>
         </ul>
      </div>
      <div name="tabdataName" aura:id="caseTabDataId" id="tab-default-3" class="slds-tabs--scoped__content slds-hide customClassForTabData" role="tabpanel" aria-labelledby="cases_linking">
         <ul>
           <table class="slds-table slds-table_bordered slds-table_cell-buffer">
           <thead>
            <tr>
               <th scope="col">
                  <b>Number</b>
               </th>
               <th scope="col">
                  <b>Status</b>
               </th>
               <th scope="col">
                  <b>Reason</b>
               </th>
               <th scope="col">
                  <b>Area</b>
               </th>
              </tr>
         </thead>
         <tbody>
            <aura:if isTrue="{!v.Message}">
               <div class="slds-text-color--error"> No Result Found...</div>
            </aura:if>
            <aura:iteration items="{!v.caseResult}" var="cse">
               <tr> 
                  <td>
                     <div class="slds-truncate uiOutputText">{!cse.CaseNumber}</div>
                  </td>
                  <td>
                     <div class="slds-truncate uiOutputText">{!cse.Status}</div>
                  </td>
                  <td>
                     <div class="slds-truncate uiOutputText">{!cse.Reason}</div>
                  </td>
                  <td>
                     <div class="slds-truncate uiOutputText">{!cse.Area__c}</div>
                  </td> 
                </tr>
            </aura:iteration>
         </tbody>
      </table>
         </ul>
      </div>     
      <div name="tabdataName" aura:id="contactTabDataId" id="tab-default-3" class="slds-tabs--scoped__content slds-hide customClassForTabData" role="tabpanel" aria-labelledby="contacts_linking">
         <ul>
          <table class="slds-table slds-table_bordered slds-table_cell-buffer">
           <thead>
            <tr>
               <th scope="col">
                  <b>Name</b>
               </th>
               <th scope="col">
                  <b>Email</b>
               </th>
               <th scope="col">
                  <b>Fax</b>
               </th>
              </tr>
         </thead>
         <tbody>
            <aura:if isTrue="{!v.Message}">
               <div class="slds-text-color--error"> No Result Found...</div>
            </aura:if>
            <aura:iteration items="{!v.contactResult}" var="con">
               <tr> 
                  <td>
                     <div class="slds-truncate uiOutputText">{!con.Name}</div>
                  </td>
                  <td>
                     <div class="slds-truncate uiOutputText">{!con.Email}</div>
                  </td>
                  <td>
                     <div class="slds-truncate uiOutputText">{!con.Fax}</div>
                  </td>
                </tr>
            </aura:iteration>
         </tbody>
      </table>
         </ul>
      </div>  
    </div>
  </div>  
</div>       
</aura:component>
Hi All,
        Can Anyone Provide me the Apex codes for the above winter 19 pd1 maintainces badge exam.......

Thanks in advance.....................
  • January 21, 2019
  • Like
  • 0