Hello everyone,
Is it possible to set repeat datasource as:
conn_list_project.data.repeat_project.filter((project) => project.repeat_categories.some((category) => category.var_percent >= 40)))
Thanks!
Hello everyone,
Is it possible to set repeat datasource as:
conn_list_project.data.repeat_project.filter((project) => project.repeat_categories.some((category) => category.var_percent >= 40)))
Thanks!
You can try it with the following expression:
conn_list_project.data.repeat_project.filter('repeat_categories.filter(\'var_percent >= 40\').hasItems()')
Such complex expressions can’t be created with the UI at the moment. There is a filter formatter for arrays, it requires a string as parameter which contains an expression. We don’t have a formatter for some, but using the filter again and check the if it returns some items does the same. Since the inner filter formatter also has a string as parameter you need to escape the quotes there.
Is there any place you can direct me to read more on the filter formatter for arrays you mention here?