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
ShuchiMShuchiM 

Visualforce List Views picklist

I want to display the list view filter picklist that shows up at the top of a case. Its the one that lets u select your list view filters. e.g, All cases, All Open Cases, etc.

How can i get that to display in visualforce?

 

Regards

Shuchi

reddygari403reddygari403

<apex:page sidebar="false" controller="Listviewclass">

<apex:form >

Enter Dept: <apex:inputtext value="{!deptname}"/>

<apex:commandButton value="SAVE" action="{!dosave}"/>

</apex:form>

<apex:listViews type="Department__c"/>

</apex:page>

 

class:

===========

public with sharing class Listviewclass {

public PageReference dosave() {

Department__c objDept = new Department__c();

objDept.name=deptname;

insert objDept;

return null;

}

public String deptname { get; set; }

}

ShuchiMShuchiM

Can i just have the picklist values instead? When i add <apex:ListViews type="Case"/>, i get the entire table with the drop down. 

sujathavoonna@gmail.comsujathavoonna@gmail.com

Hi

 

Did you get the solution for your problem.

If possible can you please share the code.

 

Thank you

suja

ShuchiMShuchiM
Its been a long time since i posted the question. All i could recall is i
couldn't use ListViews to just display a portion of it. I had to create a
custom Visualforce page for it. Try getListViewOptions() method.

--
Regards
Shuchi