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
Rasmitha ReddyRasmitha Reddy 

Display the records in vf page with out duplicates?


i have an object(product__c),and fields are line_item_name__c,expiry date__c and i want to display the records of the expiry date is to day's date or greater than today's date  and the line items dates are  same means eliminate the duplicates if the line items have same expiry date i want to display the single one ?can anybody help me?please post the controller code?

Ulas KutukUlas Kutuk

Add all them to the set, and display this set on the VF page. Sets are eliminate duplicates automatically.

Here is the examples: Collection Methods