You need to sign in to do that
Don't have an account?
Jagriti Dubey
Not able to show the data in table in vf page through sObject query .iterating the list of sObject in table but it is keep throughing error can somebody please solve it ,how iterate it.
<apex:repeat value="{!sObjOpportunity}" var="opp">
<td class="tableTd2">{!opp.Name}</td>
<td class="tableTd2">{!opp.Name}</td>
For iterating list of sObject you have to write like this,
<td>{!IF(opp['fieldname'])}</td>
I suggest to visit this link,it will help you in understand subquery in map:-
https://developer.salesforce.com/forums/?id=906F0000000975fIAA
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com
All Answers
Thanks.
Hi Avinash,
sObjOpportunity is my sObject type list, which I'm passing it through the controller, but not able to iterate the fields from the list.
Thanks in advance!
For iterating list of sObject you have to write like this,
<td>{!IF(opp['fieldname'])}</td>
I suggest to visit this link,it will help you in understand subquery in map:-
https://developer.salesforce.com/forums/?id=906F0000000975fIAA
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com