function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bhanu challengebhanu challenge 

plz check this ............... Error: Syntax error. Found 'p.'

public class s1{
public List<Student_Particluars__c> std = [select Name,Amount_Paid__c,DOB__c,Email__c from Student_Particluars__c];
public List<Student_Particluars__c> getpro(){
return std;
}
}
..........................................-------------------------------------------------............................................................

<apex:page controller="s1">
<apex:form>
 <apex:pageBlock>
 <apex:pageBlockTable value="{!pro}" var="p">
 <apex:column value="{!p.Name}"/>
 <apex:column value="{!p. Amount_Paid__c}"/>
 <apex:column value="{!p.DOB__c}"/>
 <apex:column value="{!p.Email__c }"/>
   </apex:pageBlockTable>
   </apex:pageBlock>
</apex:form> 
</apex:page>


 
Best Answer chosen by bhanu challenge
Veenesh VikramVeenesh Vikram
Hi Bhanu,

In Line : <apex:column value="{!p. Amount_Paid__c}"/>
There is a space b/w p. and Amount_Paid__c

Replace with <apex:column value="{!p.Amount_Paid__c}"/> and there will be no error.

Hope this helps.
Kindly mark as solved if it works

Veenesh

All Answers

Veenesh VikramVeenesh Vikram
Hi Bhanu,

In Line : <apex:column value="{!p. Amount_Paid__c}"/>
There is a space b/w p. and Amount_Paid__c

Replace with <apex:column value="{!p.Amount_Paid__c}"/> and there will be no error.

Hope this helps.
Kindly mark as solved if it works

Veenesh
This was selected as the best answer
bhanu challengebhanu challenge
thankq bro.............................