Skip to main content Join us at TDX in San Francisco or on Salesforce+ on March 5-6 for the Developer Conference for the AI Agent Era. Register now.
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>

 
53 answers
  1. Sep 7, 2017, 6:42 PM
    Looks like I figured out.

    styleClass="slds-table" needs to be added to pageBlockTable
Loading
0/9000