Ok, before I get to the actual issue I am having, this is what I have done.
I created a BAQ and added 2 filters to a table and have them both = “”. I use that BAQ on a dashboard I created that returns the results. I have customized the dashboard assembly by adding in my own parameter sheet (it just looks like a tracker panel) and added in two dropdowns. These dropdowns are tied to call context fields. I have a BeforeToolClick event on the Refresh button to check to see if one of the fields = “”. If it does, I throw an error.
if(args.Tool.Key == "RefreshTool" && epiCombo_Warehouse.Text == "")
{
throw new Ice.BLException("Please select a Warehouse.");
}
So, the issue I am having is that the message box pops up everytime. When the dashboard refreshes, it blanks out the drop downs, but there is a value there before the tool click.
Any one have any ideas? I’m sure it is something simple that I am missing or doing wrong, just have not figured it out yet.