Best way to use Optional filters in Dashboard on button click

Unless there are better ways, using a function to call the BAQ with lots of parameters seems to work well so far.
How To: BAQ Parametrised Dashboards - Kinetic ERP - Epicor User Help Forum