You need to sign in to do that
Don't have an account?
Greg Geller
Filter custom setting list based on user.
Hi all,
I have a custom setting list with two custom fields. I entered 9 entries of data.
I want to display 9 items for one user and 8 for all of the rest. Is this possible to do with a list?
Thank you,
Greg
I have a custom setting list with two custom fields. I entered 9 entries of data.
I want to display 9 items for one user and 8 for all of the rest. Is this possible to do with a list?
Thank you,
Greg
Component Visualforce Page
Controller class
Best option is to have extra field on Custom setting and user level. So that you can filter the custom setting matching values.
For ex:
Custom setting value:
Name: Code
Code of conduct 0
COC 0
CPNI 1
On User leve
USER 1 : Custom field= 0
USER 2: Custom field =1
P.S: You should have logic to add the value to custom field on user level when new user is created.
Thanks
Pradeep
You can modify your controller like this - Hope, it will help you.
Thanks,
Sumit Kumar Singh