Dashboard Customization Message Box

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.

you’re short circuiting the conditional logic, so if the first argument is true, then it will always be true thus popping your exception.

Ha, knew it was something stupid.
But I fixed that and it is still happening. Any other ideas?

The other thing I try to avoid is reading the text value of a control. Usually it’s a better idea to go after the underlying value.

I’ve been told that a bunch and read it in other posts even more times, but it still isn’t automatic for me yet. Thanks!