cancel
Showing results for 
Search instead for 
Did you mean: 

Creating A Filter From A Text Box

jmn3
9 - Travel Pro
9 - Travel Pro

I was able to successfully replicate the code in this tutorial to use the text from a box as a filter:  https://support.sisense.com/kb/en/article/creating-a-filter-from-a-text-box

 

However, I want to modify the action so that it returns similar values instead of exact values. For example if I type in "five", I want filter to return all values that contain the word "five".

 

I modified the action below and changed the filter property value from 'members' to 'contains' but I keep getting an error and can't seem to figure out how to fix this.

Original action code:

jmn3_1-1649427614239.png

Modified to:

jmn3_0-1649427252006.png

But get error:

jmn3_2-1649427820270.png

 

1 ACCEPTED SOLUTION

harikm007
12 - Data Integration
12 - Data Integration

@jmn3 ,

In Action code, replace filter_arr with filter_arr[0]

harikm007_0-1649430446736.png

-Hari

 

View solution in original post

2 REPLIES 2

harikm007
12 - Data Integration
12 - Data Integration

@jmn3 ,

In Action code, replace filter_arr with filter_arr[0]

harikm007_0-1649430446736.png

-Hari

 

jmn3
9 - Travel Pro
9 - Travel Pro

Thank you! That worked. I knew it was going to be an easy fix 😅