Set a default value in a Dashboard tracker prompt / BAQ Paramaters & tracker inputs

I think I can answer the question:

Is there anyway I can have that field default to today’s date when the dashboard loads?

And then in the InitializeCustomCode(), set the value for the control to DateTime.Today

public static void InitializeCustomCode()
{
	// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
	// Begin Wizard Added Variable Initialization

	dteCalculated_LoadDate.Value = DateTime.Today;
	// End Wizard Added Variable Initialization

	// Begin Wizard Added Custom Method Calls

	// End Wizard Added Custom Method Calls
}

For the other question, I guess you can take the condition out of the BAQ, and use the Trackview data as the filter instead.

2 Likes