0

Error: Formula expression is required for attribute value in in q4controller at line 7 column 58

VF code

        <apex:pageblock title = "List of accounts">

                <apex:pageblocktable value="{! acts }" var="a">

                    <apex:column value="{ !a.Name } " /> 
                    <apex:column value="{ !a.Type }" />    
                    <apex:column value="{ !a.Industry }" />

                </apex:pageblocktable>


       </apex:pageblock>


</apex:page>

******Controller class******

Public class q4{

List<account> acts;

public list<account> getacts(){
acts = [Select name,type,industry from account where type = 'Prospect'];
return acts;
}



}

what is this error, i don't understand. i have tried googling but wasnt able to pin point what the issue is.also i am new to this so please scuse and silly mistake.

Thanks

1 Answer 1

1

You need to remove extra space from your column. They are giving you error.

 <apex:column value="{!a.Name } " /> 
 <apex:column value="{!a.Type }" />    
 <apex:column value="{!a.Industry }" />
1
  • Oops,silly mistake. Thanks
    – Niknit
    May 31, 2017 at 9:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .