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
prady-cmprady-cm 

Displaying a repeat within a repeat in VF page

i had built up a wrapper class to display in the format below.

 

 Area            Allocated   Currently available
 - New York       20              15
    Vendor1       10              10
    Vendor2       10              5

 - Philadelphia   10              8
    Vendor1       5               5
    Vendor2       5               3

where values in Newyork are a sum of values of vendors under it

 

The Wrapper class is like this

 

public class HDDevicesbyArea
    {
        public string HD_Area{get;set;}
        public double HD_Current {get;set;}
        public string HD_Allocated {get; set;}
        List<HDDevicesbyVendor> ListHDDevicesbyVendor {get; set;}
        public HDDevicesbyArea ( string HD_Area_v, string allocated_v, List<HDDevicesbyVendor> ListHDDevicesbyVendor_v )
        {
         // constructor code
        }

 I am having another wrapper to hold the data of vendors and which is part of the main wrapper HDDEvicesByArea. One issue i am facing is to display the HDDevicesByVendor in the same columns of HDDEvicesByArea.

 

Is there a way we can do it?

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

I've posted an answer and some sample code on the stack exchange version of this question at:

 

http://salesforce.stackexchange.com/questions/3563/displaying-a-repeat-within-a-repeat-in-vf-page/3571#3571

All Answers

bob_buzzardbob_buzzard

I've posted an answer and some sample code on the stack exchange version of this question at:

 

http://salesforce.stackexchange.com/questions/3563/displaying-a-repeat-within-a-repeat-in-vf-page/3571#3571

This was selected as the best answer
prady-cmprady-cm

 

Thanks Bob...