How to set filter for TableMultiselect field?

How to set filter for TableMultiselect field?

plate_investigators is my field name which is connect to Cadastral Emails has one user fields.


cur_frm.set_query("plate_investigators", function(doc, cdt, cdn) {
            var d = locals[cdt][cdn];
            return {
                filters: [
                    ['User', 'role', '=', 'SAID Chief']
                ]
            };
        })

I tried this one but I got error,

"AttributeError: 'list' object has no attribute 'get'",
  • filters must be dictionary.
  • It is not recommended to use cur_frm instead use frm and set this query in setup
1 Like

Thank you @Abdeali