Gravatar for

Question by Jim Lynch, Feb 10, 2016 5:46 PM

How to group facets

Using VisualForce to query the back-end, I have field @sfsolutionsystemc which contains a semi-colon list of products. ADS;ASX;BVOIP;CALEA;CNC;CVOIP;DSI;EMS;FMC;GSX;GSX4000;HAADS;HAEMS;HAPSX;HLR;HSX;IAS;ICP;IMX;Island;NetScore;NFS;NGS;OSC;PPP;PSX;RNC;SGX2000;SGX4000;SMARTWEB;Soft MSC;SRX;TGA;xAuthority;SBC 5200;VA;BRX;SBC 5100;NetEng;BBS;LX;NetAssure;netMS;NX 1000;NX 5010;Promina;SBC 1000(UX1000);SBC 2000(UX2000);SBC 9000;SmartSIP;Tenor;Unitrends;VX;SBC 5110;SBC 5210;SWe;3rd Party Products;SBC 7000;ePSX;1101;X101/5601;X201;X211;X30x;X401e;DSC 8000 (X511);IPnexus EMS;SP2000;NSM;USP/USPc;DSC SWe

The result is a long list of facets. For example:

SBC 5100 SBC 5110 SBC 5200 SBC 5210 SBC 7000

What I would like to do is create a collapsible list so that I just have the facet "SBC". The user can then expand SBC and see all the SBC products. This would be very similar to a hierarchical facet.

Is this possible ?

Thanks Jim

1 Reply
Gravatar for

Answer by Martin Laporte, Feb 11, 2016 3:39 AM

If you can manage to have the first part (SBC) in a separate field, then you could put a facet on it, and make the one displaying the full product name "depend" on that first facet so that it only shows up when a value is selected there.

Gravatar for

Comment by Jim Lynch, Feb 11, 2016 1:45 PM

Ideally what I would like to do is have some control over what 'products' belong to which facet. In the list of products above, there are some named X101, X201, X30x. I would like to be able assign them to a specific facet. Is this something that can be done in a conversion script ?

Gravatar for

Comment by Martin Laporte, Feb 12, 2016 8:52 AM

You can have multiple facets on the same fields, with different lists of allowed values. It's possible to use wildcards in there, so you can have X* as an allowed value.

Ask a question