Question

APPLY TEXT FILTERS TO THE SECTION

Hi,

I would like to know if it's possible to create filters for sections, like the ones shown in "https://academy.creatio.com/documents/technic-sdk/7-15/adding-quick-fil…" but using strings/text and not lookups or dates? If yes, how can I do it?

 

Thanks in advance.

 

Best Regards,

Andreia Freire

Like 0

Like

1 comments

Hi Andreia,

 

The problem here is that fixed filters can work with Date and Lookup datatypes only (check the FixedFilterViewV2 module and the getMenuButtonItems method there).

 

A better approach here is to:

 

1) In the replaced section module add the text column (inside the container) and the button

2) Add the text attribute

3) After clicking a button set the value for attribute (2) as the value from field (1) and call reloadGridData

4) Override the initQueryFilters method in the same replaced section module (it adds filtration to the esq that loads grid data) and add additional filtration based on the attribute value (1).

 

Best regards,

Oscar

Show all comments