Questions tagged [list-view]

Use this tag when asking questions specifically related to salesforce List Views

29
votes
2answers
34k views

Creating a custom list-view button that handles multi-record selection

I would like to create a custom button for a list-view that applies the same action to all the selected records in the list view. For instance, in the Cases list-view there are the Change Status and ...
3
votes
1answer
932 views

List View Visibility

I have a page where I am trying to show which ListViews a Project is in. I can get the data I want in the Developer Console by querying ListView. However, when I try to import the following query to ...
5
votes
2answers
5k views

How do I control recursive Triggers with static variables and permit Mass Edit from List View

I have a pretty complicated issue with users mass editing record from the Enhanced list View and using static methods to control the flow of recursive triggers. In case you are not familiar, due to ...
5
votes
3answers
6k views

Default ListViews in Lightning

Is there a way to give a profile a different default list view then "Recently Viewed" in Lightning?
14
votes
3answers
8k views

Create a list view filter via apex

Create a list view filter via apex for a custom object that would then be available to all users. Is this even possible ? and if so please provide a code example Thanks
7
votes
3answers
8k views

Can List view parameters be passed in via the URL?

Is there any pattern for passing parameters into a list view? For example if I wanted to display Tasks with a Status of "In Progress" the URL could be something like: https://na3.salesforce.com/007?...
4
votes
4answers
21k views

Calling Apex Class from Custom Button, And Then Refreshing List View

I have added a Custom Button to the List View of the Custom Object. What is the best practice of calling an Apex Class on click of the Custom Button, and refresh the List View after execution of the ...
3
votes
3answers
4k views

Remove buttons from Listview in VisualForce Page

I created this page and put it into an iframe on the Salesforce homepage. Is there anyway I can hide these buttons at the top? I have no problem with it being there except that when I click new case ...
2
votes
2answers
13k views

Custom List view buttons in the lightning environment

I have a requirement where I want to have a custom list view button with an ability to perform a mass custom action in the Lightning environment. I do not see an option to add lightning quick-action ...
9
votes
2answers
2k views

lightning component in list view button

How to use a lightning component in list view button for a contact object. I want to perform some action on bulk using my lightning component. I can't see any option. I don't want to use ...
4
votes
1answer
1k views

custom button visibility list view

I have addded a custom button to list views in the Contact object. I have multiple list views but I just need to show the custom button in some of the list views and it should be hidden in the ...
2
votes
1answer
349 views

visualforce page to list cases by contact using 'case.AccountId' for Person Account - Lightning Design

I have a business use case demand to show a list of Cases for the current associated Contact on the Case Feed in Service Console. I was able to achieve this with the below VisualForce Page: I was ...
18
votes
1answer
24k views

Custom List View to display VF Page

Is it possible to display a VF page for a custom list view ? From the above, instead of those list columns I want to render a VF page containing a list of cases.
12
votes
4answers
1k views

Download Invoice PDF's On List View without saving to Notes and Attachment as a zip file

Scenario: Am having Invoice__c Object. On the list view I have download button to download the selected invoices PDF's. What my below code is doing is it is after fetching the selected records id's of ...
3
votes
1answer
1k views

How to create a list view the returns all the records related to a current user?

Question Assuming an object with a user lookup, how can I create a list view (standard, not VF) that returns all objects related to the current user? Background We've got a compliance object, and ...
4
votes
1answer
767 views

Custom button on list view

I am trying to build a button in the list view to: Change case ownership to the current user Change the case status to work in progress I have the following code in the detail page that works fine: ...
3
votes
1answer
2k views

The CORRECT way to redirect to a ListView from StandardSetController?

From a List Button or Visualforce Page, I wanna redirect to a ListView after. Common, right? Life is great when we're dealing with Standard Controller: using view() method. What is the correct, ...
3
votes
2answers
937 views

How to read a ListView (restricted Visibility to me) with APEX MetadataService.cls?

During my work on this question, I'm trying to retrieve a ListView using this code: public class SFSEMetadataListView { public static void readListView() { MetadataService.MetadataPort ...
1
vote
0answers
733 views

User List view in Napili template

I have a requirement to Show all the user who are able to access the Community built on the Napili Temaplate. There is a pre-existing page for the same named User List, i assume. But the URL is need ...
3
votes
1answer
465 views

How to retrieve what filters were set on a listview using API?

I'm trying to integrate Salesforce in another system and it's required to filter these, but the client should be fully free to use any filters he wants. Using a listview and settings its filters, he's ...
2
votes
2answers
2k views

Setting List View Parameters?

I know that it's possible to modify the filters on a Salesforce report by using URL query parameters like pv0=SOMETHING. Is there any way to do this with List views? What about with list views ...
2
votes
2answers
416 views

enhancedLists are not rendering properly inside jQuery UI tabs or tabPanel

Using apex:enhancedList tag inside jQuery-tabs or apex:tabPanel only renders the listView of default tab correctly. If I switch to another tab, I'm loosing the view. <apex:page controller="...
2
votes
2answers
2k views

Redirect to list view URL on custom object tab click

I'm trying to display the "list view" vs "recent item" by default when a tab is clicked on a Custom Object. I know how to do this for a Standard Object by creating a VF page and applying it to the ...
1
vote
1answer
164 views

Issues with List API in Read Only mode VF page

Currently we are using a custom list view Visual Force page button for mass actions to export data to excel sheet in salesforce classic. Objects and relations: Static List (Custom object with Master ...
1
vote
1answer
2k views

hiding a div when clicking anywhere outside without using jQuery

Trying to create my own version of salesforce listviews in a Lightning Component, got to the point where I can open and filter the drop down list (based on lightning design system: Page Header opening ...
0
votes
1answer
18 views

Error “Failed to get metadata of listview foo_baz for entity Account. ” when trying to search list view

I am trying to use 'search in list views' SOSL feature, but receiving the error mentioned in title. The query in itself is: FIND {fook} IN ALL FIELDS RETURNING Account(Id, Name USING LISTVIEW=...
0
votes
1answer
140 views

Empty picklists when account is dragged to calendar to quickly create Event

There's a checkbox in Setup -> User Interface that allows you to drag Accounts from list views to calendar & quickly create events. When you drag them, a "balloon" pops up with all the fields (...
0
votes
0answers
327 views

Multiple list views in a tabbed page - only one renders

I have a visualforce page with a tab panel and included enhanced lists under tabs. Example: <style> .activeTab {background-color: #236FBf; color:white; background-image:none} ....