Quick filters Block in Section Page

Hi,

I implemented a method for quick filter on section page based on the following link

https://academy.bpmonline.com/documents/technic-sdk/7-13/adding-quick-f…

The filter i created is based on the Accounts object. I would like that the users can only select a subset that contains a bollean with a true value.

Is there any parameter in the initFixedFiltersConfig method that does that?

Thanks.

Best regards,

Nuno Gonçalves

Like 0

Like

1 comments

Dear Nuno,

You can take an "Active" filter in Process Library section as an example for your functionality. 

Please inspect the BaseProcessLibSection schema code for more details on the filter. In has a container and filter insert:

		diff: /**SCHEMA_DIFF*/[
			{
				"operation": "insert",
				"name": "HasActiveProcessFilterContainer",
				"parentName": "FiltersContainer",
				"propertyName": "items",
				"index": 0,
				"values": {
					"itemType": this.Terrasoft.ViewItemType.CONTAINER,
					"wrapClass": ["active-process-filter-container"],
					"items": []
				}
			},
			{
				"operation": "insert",
				"parentName": "HasActiveProcessFilterContainer",
				"propertyName": "items",
				"name": "HasActiveProcessFilter",
				"values": {
					"caption": "Boolean filter",
					"controlConfig": {
						"className": "Terrasoft.CheckBoxEdit",
						"checkedchanged": {
							"bindTo": "onActiveProcessFilterChecked"
						}
					}
				}
			}
		]/**SCHEMA_DIFF*/

Also method which is triggered by click - onActiveProcessFilterChecked.

You can use it as an example and add your own filter.

Regards,

Anastasia

Show all comments