Web Reports "Printable Version" link not Filtering relevance queries created using the EvaluateRelevance() javascript method

In IBM Web Reports there is a clickable link in the upper right of the report that says “Printable Version”, and opens up a printable version of the report on the current page that doesn’t have the toolbar, filter tab, or the source code editor. I’ve noticed that in some of my reports that the printable version generated by this link doesn’t apply the selected filters in the filter tab to the query like it does on the main report page.

After investigating the cause, I discovered that it only happened on reports with relevance queries generated using the EvaluateRelevance() javascript method and not on the ones generated using the <?relevance ?> HTML tag.

Is this a bug in Web Reports? If so is someone able to patch it?

I use the EvaluateRelevance() method for queries that require dynamically generated javascript variables, and the <?relevance ?> tag for static queries (no external inputs). At least that’s how I originally learned how to do it, is there another way?

1 Like

How are you calling EvaluateRelevance? Using an onclick.event or onload() or something else?

Both in the cases of different reports, filters are dropped from the printable version. It doesn’t matter when the query is being generated by the javascript, the printable version will not be filtered by the selected filters in the filter tab.

I think you should open a PMR with this so Support can raise it with the development team. It sounds like it would take either a bug or an RFE to change that behavior.