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
VarunCVarunC 

How to get COLUMN present in a View

Hi,

I'm looking for a way to get All Columns present in a Custom View. I've implemented Custom Views on a List View Page of Records. I was able to display and filter records based on the View selected from the Dropdown, but since it is a VF page, I've static Columns defined in pageDatatable. So now, I need to know how can I create a pageBlockTable with n-Number of columns dynamically, based on the View Selected.

Any idea to any one, in which direction I should proceed further?

Thanks.
RickyGRickyG
I think you are going to have to hand-roll this with something like a column for each potential field and a flag to render the column or not, but others may know better.

Hope this helps.
VarunCVarunC
Yes, that's exactly is in my mind for implementation, but I Do No have any idea on how to Get All COLUMNS presented in Sleected View, I have FilterID for the selected View, but I do Not know how to read the column names using this FilterId value :(.

Any idea .. how to achieve that ....
RoziRozi
Hi, Please let me know if you found solution for this. 
PachuPachu

Hi,

 

Please let me know if you were able to find the solution on this.

 

VarunCVarunC
No ... couldn't find any solution for that ....