Thank you @NCP for you rmessage.
In my post you will see that I did try the suggestion from the post
It seems that with the
%(checkbox)s
method, the content of the checkbox is not read properly when the checkbox
is not set. That is why I tried the suggestion listed in the post that you mentioned.
@gsarunk , made s suggestion in the post
and I tried that but it did not work. Not sure if I did it incorrectly. I loaded my
definition into the “script” part of my custom query report. Here is a copy from my
first post …
frappe.query_reports[‘Test’] = {
“filters”: [
{
fieldname: “nr”,
label: “Nr”,
fieldtype: “Check”
},
// … other filters
]
}
but when I used my browser in debugger mode, I saw the link to my report but the
filter definition “filter” was empty. This seem to suggest that it did not pick up my
filter definition that I made in the “script” part of my report.
I also tried this way of reading the state of the checkbox …
filters.get(“nr”)
But I got an error that stated that I was not allow that method.
So I am still stuck.