Imitate customer service section filters

Hello Community,

I need the filter options of a customer portal page within regular sections. I need to hide the advanced filter menu from the section filtering menu.

Do you have any idea of how to do so?

 

Thank you in advance, have a nice day! 

Like 0

Like

1 comments

Hello,

 

In the replaced BaseSectionV2 module you need to:

 

1) define the GetExtendedFilterConfig PTP message with the subscribe direction:

"GetExtendedFilterConfig": {
					mode: this.Terrasoft.MessageMode.PTP,
					direction: this.Terrasoft.MessageDirectionType.SUBSCRIBE
				}

2)  subscribe to the message:

subscribeSandboxEvents: function () {
					this.callParent(arguments);
					const quickFilterModuleId = this.getQuickFilterModuleId();
					this.sandbox.subscribe("GetExtendedFilterConfig", this.onGetCustomFilterConfig,
						this, [quickFilterModuleId]);
				},

3) in the onGetCustomFilterConfig method handler disable the advanced filtering:

onGetCustomFilterConfig: function() {
				return {
						hasExtendedMode: false
					};
			}

An example of the code used in the portal can be found in the BaseDataView module.

 

Best regards,

Oscar

Show all comments