You need to sign in to do that
Don't have an account?
SFDC16
apex:repeat tag not working with list of object
Hello,
Data not displaying in vf page for the below code .
public String caseId{get;set;}
*--------Controller--------------*
public List<Case> casListId{get; set;}
public void getDetails()
{
//String caseId= System.currentPageReference().getParameters().get('row_id');
casListId=new List<Case>();
System.debug('Case ID'+caseId);
casListId=[Select id,CaseNumber from Case where Id ='5007F00000K8gwH'];
System.debug('casListId'+casListId);
// return null;
}
*----------Vf Page---------*
<apex:form >
<apex:pageBlock >
<table class="Table">
<apex:repeat value="{!casListId}" var="a" >
<tr>
<td> <apex:outputText value="{!a.CaseNumber}"/></td>
</tr>
</apex:repeat>
</table>
</apex:pageBlock>
</apex:form>
Data not displaying in vf page for the below code .
public String caseId{get;set;}
*--------Controller--------------*
public List<Case> casListId{get; set;}
public void getDetails()
{
//String caseId= System.currentPageReference().getParameters().get('row_id');
casListId=new List<Case>();
System.debug('Case ID'+caseId);
casListId=[Select id,CaseNumber from Case where Id ='5007F00000K8gwH'];
System.debug('casListId'+casListId);
// return null;
}
*----------Vf Page---------*
<apex:form >
<apex:pageBlock >
<table class="Table">
<apex:repeat value="{!casListId}" var="a" >
<tr>
<td> <apex:outputText value="{!a.CaseNumber}"/></td>
</tr>
</apex:repeat>
</table>
</apex:pageBlock>
</apex:form>
Please refer to the below link from the forums community with a similar discussion which might help you further with the above issue.
- https://developer.salesforce.com/forums/?id=906F0000000931qIAA
Please let us know if this helps.Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra
try this code Its working fine.
if you found this answer helpful then please mark it as best answer so it can help others.
Thanks
Akshay
if you found this answer helpful then please mark it as best answer so it can help others.
Thanks
Akshay
It's not working, Data not displaying on table I am getting blank page
Please use this code with command button :-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh