Trying to get values of tracker view fields
Getting absolutely nowhere with the example on pgs 247,248 in customization manual.
can anyone give any hints on what ‘using’ references are needed, how to get the control or query column references so I can use the values in a custom button click…
Ok, so you are looking to get the value of controls on a Dashboard Tracker View (Runtime Dashboard)
If you deploy the dashboard as a custom DLL it becomes pretty easy, however Runtime Dashboards are dynamically generated meaning that the GUID on the controls changes every time you open the dashboard.
This means you have to get “Creative” (read Hacky) to get those values.
Try this
Ice.Lib.Framework.EpiBasePanel pnl = (Ice.Lib.Framework.EpiBasePanel)csm.GetNativeControlReference("3b07d953-5f6c-4fc5-9d8e-ff16d287bef9"); // This is the Guid of the Tracker Panel which won't change since that's not dynamically generated
foreach(Control c in pnl.Controls)
{
if(c.Name.Equals("numPartTranSNTran_PartTranTranNum"))
{
MessageBox.Show(((Ice.Lib.Framework.EpiNumericEditor)c).Value.ToString());
break;
}
}