You need to sign in to do that
Don't have an account?
Baktash H.
Get List Views in Apex Code
Hello,
i wanted to know if there is a way to get the IDs of listviews of an Object in Apex Code.
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hello,
i wanted to know if there is a way to get the IDs of listviews of an Object in Apex Code.
Construct a StandardSetController for the type of SObject (using a QueryLocator) you'd like to retrieve the list views for, then call getListViewOptions against the StandardSetController.
All Answers
Construct a StandardSetController for the type of SObject (using a QueryLocator) you'd like to retrieve the list views for, then call getListViewOptions against the StandardSetController.
hi how to get the related records from the particular list view in apex
currently i am doing like this
selectedView- contains the filterId of the list view
leadSet.setFilterId(selectedView);
leadList = leadSet.getRecords();
system.debug('leadList::::::::::'+leadList);
but i am getting Null in the above debug
http://www.jitendrazaa.com/blog/salesforce/listview-filter-in-apex-with-paging-and-navigation/