+ Start a Discussion
Puneet KhoslaPuneet Khosla 

Superbadge : Lightning Experience Rollout Challenge 3 : The AccountTab Visualforce page does not include one or both of the following: the apex:slds tag in the page, or the slds-table value in the table.

I am getting this error when trying to do the "Lightning Experience Rollout Specialist"

The AccountTab Visualforce page does not include one or both of the following: the apex:slds tag in the page, or the slds-table value in the table.


My code is as follows:
 
<apex:page standardStylesheets="false" standardController="Account" recordSetVar="accounts" tabStyle="account" applyHtmlTag="false" applyBodyTag="false" showHeader="false">
   <head>
       <apex:slds />
    </head> 
	<body>
    <div class="slds-scope">     
        <table class="slds-table">
  			<thead>
    			<tr class="slds-text-title_caps">
      				<th scope="col">
        				<div class="slds-truncate" title="{!$ObjectType.Account.Fields.Name.Label}">{!$ObjectType.Account.Fields.Name.Label}</div>
      				</th>
    			</tr>
  			</thead>
  			<tbody>
    			<apex:repeat value="{!accounts}" var="a">
                <tr>
                  <td data-label="Account Name">
                    <div class="slds-truncate" ><apex:outputLink value="{!URLFOR($Action.Account.View, a.id)}">{!a.name}</apex:outputLink></div>
                  </td>
      
    			</tr>
                </apex:repeat>
            </tbody>
        </table>
     <!--   
     <div class="slds-scope">
        <apex:pageBlock >
            <apex:pageBlockTable value="{!accounts}" var="a" styleClass="slds">
                <apex:column headerValue="{!$ObjectType.Account.Fields.Name.Label}">
                    <apex:outputLink value="{!URLFOR($Action.Account.View, a.id)}">{!a.name}</apex:outputLink>
                </apex:column>
            </apex:pageBlockTable>
        </apex:pageBlock>-->
    </div>
        </body>
</apex:page>

 
Best Answer chosen by Puneet Khosla
Puneet KhoslaPuneet Khosla
Looks like I figured out.

styleClass="slds-table" needs to be added to pageBlockTable

All Answers

Puneet KhoslaPuneet Khosla
Looks like I figured out.

styleClass="slds-table" needs to be added to pageBlockTable
This was selected as the best answer
Henrik HeltHenrik Helt
Hi 
I have the similar issue and have tried to copy paste your code, unfortunately I still get the same error. I can see your says styleClass="slds-table" needs to be added to the pageBlockTable, but the code in your pageBlockTable is not active and when activating it the code is no longer valid - any suggestions.
Nazrul AminNazrul Amin
Hi @Henrik, try the below.  Frustrating question as I had similar issues.  I only added the 2 bolded items below.

<apex:page standardStylesheets="false" standardController="Account" recordSetVar="accounts" tabStyle="account">
<apex:slds />
    <div class="slds-scope">
        <apex:pageBlock >
            <apex:pageBlockTable value="{!accounts}" var="a" styleClass="slds-table">
                <apex:column headerValue="{!$ObjectType.Account.Fields.Name.Label}">
                    <apex:outputLink value="{!URLFOR($Action.Account.View, a.id)}">{!a.name}</apex:outputLink>
                </apex:column>
            </apex:pageBlockTable>
        </apex:pageBlock>
    </div>
</apex:page>
Henrik HeltHenrik Helt
Hi Nazrul, After some triggle back and forward I succeded - thank you very much for providing these guidelines. Med venlig hilsen / Kind regards Henrik Helt Hansen Senior Consultant Corpital P/S Tobaksvejen 23B 2860 Søborg Denmark P: (+45) 70 20 77 01 W: www.corpital.com @: hhh@corpital.com [image: Twitter]Twitter This e-mail message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. If you have received this e-mail in error, please notify the sender and delete the material from any computer. Corpital has taken every reasonable precaution to minimise the risk of software viruses, and as such we cannot accept liability for any damage you may sustain as a result of such viruses.