I've been handed a task and I don't really know where to start:
I have a set of checkbox fields in one object.
These fields do not work well when I want to create a new View in Salesforce. Each checkbox is its own individual field, and they cannot really be filtered.
However, the checkboxes are grouped by topic (activity, sub-activity, etc). This is because they used to be picklists. The picklists worked normally in the View (Field=activity, filter equals $activitytype) but gave my bosses other problems.
It's been suggested that I wrap the checkboxes in a larger object, which would be the field that the View searched through (and might be useful for other things).
However, it looks like the checkboxes would have to still exist, and clutter up the View fields. The only way to eliminate them from the View would be (I think) to have them not render.
In this case the only way for someone to check or uncheck the checkboxes (which is necessary) would be through the wrapper class object, which I would have to display as a table on the same visualforce page as the checkboxes.
I'm not even sure if I can use a wrapper class to affect a checkbox, so it may be that i'm going down completely the wrong road here.
In short, my question is: How can I get the View function in Salesforce to treat a bunch of checkboxes as an equivalent picklist, by making the name of that bunch the 'field name' and making each individual checkbox name a filter? Is wrapping even the right way to do this? I just found out about fieldsets, would they be useful?
Any help is appreciated,
EDIT: New information:
So, the original functionality looks like this:
As you can see, the top picklist field is called 'activity'.
Now, when you go to the 'Create a new View' function, you see this:
It is possible to select 'Activity' and set it to 'includes Employment, Training, etc.' for the new view. This feature is what my bosses are interested in having.
However, they have also asked me to do this:
Note that the new table of checkboxes, marked 'Activity' contains the same choices as the old picklist marked 'Activity' (slightly renamed, but that's all). They like some things about this, but what they didn't think of (and I didn't know) was that the effect this has on the 'Create New View' function.
As you can see, the Field Select now includes each individual checkbox as a selectable option. What we want is the old functionality - the ability to choose 'Activity' and filter by which option is selected. We just want to do this with checkboxes instead of picklists.
I hope this clarifies things. If not, please let me know. Also I apologise for not getting this up sooner - we're doing a software upgrade and yesterday got a bit hairy. Aaron