Your issue is not with your data grid, but your data table and server code. In your data table you have a column named “Recall Priority”. Then in your server code you want to search on that column and use app_tables.high_priority_recalls.search(Recall Priority="High")
When you pass a keyword argument to a function in Python, there can’t be spaces as part of the argument name (spaces are not valid in Python variable names). Remove the space in your column name, so that it’s RecallPriority, and then fix up your conversion to a dictionary later.
You should have seen an error in the IDE console or in the app logs that would have pointed you to the search line being the problem.
When you’re getting errors like that, remove your own exception handling which obscures the stack trace. Without your own exception handling, you get a full stack trace in the IDE console, which shows:
TypeError: __init__() takes 2 positional arguments but 3 were given
at ServerModule1, line 24
called from HighPriorityRecalls, line 12
called from HighPriorityRecalls, line 16
called from Home, line 22
That tells you the problem is on line 24 of the server module, which is this line:
q.all_of(q.ilike("Recall Priority", "High"))
The error says you’re giving too many arguments to something. q.ilike takes only a single string, not two. You’re supposed to use the column name in front of it as a keyword argument, e.g. RecallPriority=q.ilike("High")
But it doesn’t make sense to use q.ilike unless you use a wildcard. And it doesn’t make sense to use q.all_of with a single option. So I’m not sure exactly what you’re trying to accomplish with that line.