Skip to main content
September 13, 2021
Question

Default search in a Record.

  • September 13, 2021
  • 5 replies
  • 0 views

HI, 

I'm trying to use default search in an entity backed record. I want to show a list of records which are also stored in a different table on the grid. I tried to call the values in a local variable in Default filters(expression mode), and when I try to use the "IN" function,  I get an error saying "Cannot apply operator [IN] to field". So, I have used a for each and "=" function to achieve what I needed. Is this a good approach or do we have any other option to do it in Appian?

Note: I know it can also be done via a view and filter those in the backend. I would like to understand whether there is any other option that we can look into?

5 replies

stefanhelzle0001
September 13, 2021

Using multiple "=" instead of an "IN" is probably never a good idea as it increases load on DB. And the DB has a limit on values you can pass.

I would need more details. What data type is this field you want to filter on?

What do you mean with "I want to show a list of records which are also stored in a different table on the grid."?

Do you have some code snippets?

September 13, 2021

Yes Stefan. I agree on that and I do not want to use that scenario.  I found the issue and I have fixed it.

Thank you.

peter.lewis
Employee
September 13, 2021

Would you mind describing the solution? Someone in the future might run into the same issue and you could help them.