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
Tiwari_ShwetaTiwari_Shweta 

Dynamic Table Headers

Hi I have a object MPG__c having fields Quote__c, MPG_Type__c, List_Price__c.Quote_price__c have values like Q1,Q2,Q3. MPG_Type__c type have values MPG A,MPG B,MPG C...and List_Price__c have values 100,233 respectively,455.So it looks like

 

Quote__cMPG_Type__cList_Price__c
Q1MPG A100
Q2MPG B233
Q3MPG C455

 

Now I have to show them in a table like :

 

Quote__cMPG AMPG BMPG C
Q1100  
Q2 233 
Q3  455

 

So that MPG A,MPG B..become table headers and if more values are added to MPG_Type__c,they become table headers dynamicly .Is it possible ?

can anybody help with sample code.