MES launch custom dashboard with employee num as parameter

I have a custom button on MES to launch a custom dashboard built for employees to show efficiency. I am using epiViewNotification to enable/disable it on employee clock in. In the dashboard, i need to use employee number to filter data for clocked in employee and i haven’t been able to figure out how would i do that.
Here is what i been trying:


Any help is highly appreciated.
Thanks in advance.

One option would be to filter for the EmployeeID in the BAQ behind the dashboard. Doing this will only display data for the current employee using MES.

image

Great. thank you for this direction Matt. I didn’t know CurrentEmployeeID is available in BAQ parameter.

I added reference to session variable then added following code to load form event to get this done:
private void MainController_Load(object sender, EventArgs args)
{
// Add Event Handler Code
// Get EmpID
session = (Ice.Core.Session)oTrans.Session;
String empID = session.EmployeeID;
if(empID != “”)
{
EpiTextBox empText = (EpiTextBox)csm.GetNativeControlReference(“9e9e1ac9-4ad3-496d-bd09-fbc04a8d83bd”);
empText.Text = empID;
MainController.AppControlPanel.HandleToolClick(“RefreshTool”, new Infragistics.Win.UltraWinToolbars.ToolClickEventArgs(MainController.MainToolManager.Tools[“RefreshTool”], null));
}
}