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
RudiHulsbosRudiHulsbos 

Visualforce dataTable with columns on the left and data on the right??

Hi there all,

 

I am trying to create a table with the columns on the left hand side, and display the returned data on the right hand side??:

 

Column 1          Product.Name

Column 2          Product.Description

Column 3          Product.Quantity

Column 4          Product.Price

 

Then, just to make it interesting, i need to repeat the table for each product in the returned list??

 

Please any suggestions would be greatly appreciated!!

 

Thanks,

 

Rudi 

Best Answer chosen by Admin (Salesforce Developers) 
Cool_DevloperCool_Devloper

Rudi,

Are you looking at a summarized view per product? If yes, then you will have to make sure, that you know when the next product appears in your list!!

Else, you can use custom tables with "<apex:repeat>" or "<apex:dataList>" components defining the structure as you want.

Cool_D

All Answers

Cool_DevloperCool_Devloper

Rudi,

Are you looking at a summarized view per product? If yes, then you will have to make sure, that you know when the next product appears in your list!!

Else, you can use custom tables with "<apex:repeat>" or "<apex:dataList>" components defining the structure as you want.

Cool_D

This was selected as the best answer
RudiHulsbosRudiHulsbos

Thanks Cool_D,

 

I managed to accomplish what i needed using <apex: repeat> :)

 

Thanks,

 

Rudi