You need to sign in to do that
Don't have an account?
Chandra Sekhar CH N V
Convert Select Options to Set
I have a list of select options which I am displaying in a VF page as a multi picklist field.
How can I make it as a Set<string> so that the values will not be duplicated?
public List<SelectOption> getEPGName () { List<SelectOption> options = new List<SelectOption>(); for (<sobject> EPG : <my query>]){ options.add(new SelectOption(EPG.ID, EPG.<my field>)); } SelectOptionSorter.doSort(options, SelectOptionSorter.FieldToSort.Label); return options; }
How can I make it as a Set<string> so that the values will not be duplicated?
Le