Hi all,
I have a data table for which i would like blank entries to be highlighted in red. I’m trying to use the style_data_conditional combined with the “filter_query”. I have an example of this working where in the column “Process” and cells with “Process 1” are highlighted, and in “Time/s” any columns with the number 5 are highlighted:
style_data_conditional=[
{
“if”: {
‘column_id’:‘Process’,
“filter_query”: ‘{Process} eq “Process 1”’
},
“backgroundColor”: “red”,
},
{
# “if”: {
# ‘column_id’:‘Task’,
# “filter_query”: ‘{Task} eq 5’
# },
# “backgroundColor”: “red”,
},
{
“if”: {
‘column_id’:‘Time/s’,
“filter_query”: ‘{Time/s} eq “5”’
},
“backgroundColor”: “red”,
},
],
However I can’t get this to work for the blank cells. When I try to filter_query “” it returns the error message:
"unable to evaluate target: syntax tree is invalid for query={Task} eq “” "
style_data_conditional=[
{
“if”: {
‘column_id’:‘Process’,
“filter_query”: ‘{Process} eq “Process 1”’
},
“backgroundColor”: “red”,
},
{
“if”: {
‘column_id’:‘Task’,
“filter_query”: ‘{Task} eq “”’
},
“backgroundColor”: “red”,
},
{
“if”: {
‘column_id’:‘Time/s’,
“filter_query”: ‘{Time/s} eq “5”’
},
“backgroundColor”: “red”,
},
],
Any help for highlighting the blank cells would be greatly appreciated!
Thanks,
Harry