• david roberts UK
  • 10 Points
  • Member since 2016
  • Logicom

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 7

This is the error that appears: 

Step Not yet complete... here's what's wrong: 
AccountListItem's JS controller doesn't get a reference to the AccountSelected event 
Note: you may run into errors if you've skipped previous steps.

I´ve done every step as they told me to do. If you could help me see the erro I would really appreciate it guys.

Hereare the screen shots of the part of the code that's been giving me problems:

- AccountList component:

<aura:component controller="AccountController">
<aura:registerEvent name="accountsLoaded" type="c:AccountsLoaded"/>
<aura:registerEvent name="accountSelected" type="c:AccountSelected"/>

    <aura:attribute name="accounts" type="Account[]"/>
    <aura:handler name="init" value="{!this}" action="{!c.doInit}" />

    <aura:iteration items="{!v.accounts}" var="account">
        <c:AccountListItem account="{!account}"/>
<li><a onclick="{!c.accountSelected}">{!v.account.Name}</a></li>


- AccountList Controller:

    accountSelected : function(component) {
        var event = $A.get("e.c:AccountSelected");
        event.setParams({"account": component.get("v.account")});

Thank you guys.
Trying to complete this challenge.  Recieve the following error message.  Need help resolving:

"Challenge not yet complete... here's what's wrong: 
The page does not bind to the record ID value (in order to link to the record detail page)"

Here's my code for 'AccountList.vfp':

<apex:page standardController="Account" recordSetVar="accounts">
    <table border="1" >
        <apex:repeat var="a" value="{!Account}">
                <apex:outputLink value="/<record id>">
I have been following along with the (workbook_vf.pdf) Visualforce Workbook
Version 6, Spring ’15.  There is one section called Visual Force and Apex in Action that will create a web page that shows a Google map of nearby warehouses.

I have followed all of the code examples in the workbook but the page:/apex/FindNearbyWareshouses will not render the Google map.  The page is just blank.

I also viewed the
      Develop > Pages > Completed_FindNearbyWarehousesPage
that comes with the Enhanced Warehouse Data Model (see page 25 of the workbook) and it will not work either.

Can someone please try this example in the workbook and see if they can get it to work?  I think it would be very valuable to be able to see how all the pieces work together.

 i need to pass selected value with ' ' in the following string but i am unable to do so

 String query='select column_name from information_schema.COLUMNS where table_name ='+ selectedValue1;

 my debug log shows the below mentioned statement

select column_name from information_schema.COLUMNS where table_name =RegistrationTable

 but the actual required statement should be 

select column_name from information_schema.COLUMNS where table_name ='RegistrationTable'

 how do i prepare my string variable. As Sfdc is not allowing me to use "" to prepare the string.