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
sunnyysunnyy 

Dynamic column based on another column data.

Hello,

 

    I have created a table using pageblocktable. There are 2 columns in that table. First column contains a field called "Inputtype" and may have some records with data like Text, Select Choice,Table etc.. Here my prob is....I am taking second column in the same table. If the First column contains data like "Text" then second column should be have inputText box format. or If First column contains the data like "Select Choice" then second column should have radio buttons. Or If the First column contains the data like "Table" then second column should have inner table with 1 or 2 columns. 

 

   So here the second column is dynamically displaying the inputtype based on first column data. If Text --> Text box, If Select Choice --> Radio Buttons, If Table --> Inner pageblocktable.

 

   Can any one of you consider it as urgently needed and please help me out.

 

Thanks in advance.

 

Sunny

dieffreidieffrei

Did you try to use dynamic components?

sunnyysunnyy
Got the solution....Thanks