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
Jagriti DubeyJagriti 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>
Best Answer chosen by Jagriti Dubey
Deepali KulshresthaDeepali Kulshrestha
Hi jagriti,

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

Avinash GangadhareAvinash Gangadhare
Hi @jagriti Dubey - Can you please give more details like what exactly you are trying to achieve and what is the error message you getting.
Thanks.
Jagriti DubeyJagriti Dubey

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!

Deepali KulshresthaDeepali Kulshrestha
Hi jagriti,

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
This was selected as the best answer