# Passing Value from Tracker Field on Dashboard

**URL:** <https://www.epiusers.help/t/passing-value-from-tracker-field-on-dashboard/87554>\
**Category:** Epicor ERP 10\
**Tags:** customization\
**Created:** [February 16, 2022, 7:59pm UTC](https://www.epiusers.help/t/passing-value-from-tracker-field-on-dashboard/87554 "2022-02-16T19:59:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emzi1981](https://www.epiusers.help/letter_avatar_proxy/v4/letter/e/f07891/32.png) [@emzi1981](https://www.epiusers.help/u/emzi1981)\
**Post date:** [February 16, 2022, 7:59pm UTC](https://www.epiusers.help/t/passing-value-from-tracker-field-on-dashboard/87554/1 "2022-02-16T19:59:51Z")

</div>

Hi, I have a dashboard with a tracker. How can I pass the value from the tracker text box into a variable ? With a standard text box I am able to use the below code.

```
private void epiButtonC2_Click(object sender, System.EventArgs args)
{
	// **Place Event Handling Code Here**

```

MessageBox.Show(epiTextBoxC1.Text);  
}

The tracker text box has a name of txtVendor\_VendorID but it doesnt work as a standard text box above. (The name is greyed out in the properties) I believe I need to be using GetNativeControlReference with the EpiGuid but I can’t get it to work. Example below (been experimenting with lots of variations on this).

```
private void epiButtonC3_Click(object sender, System.EventArgs args)
{
	// **Place Event Handling Code Here**
private EpiTextBox VendorID;

```

this.VendorID = (epiTextBox)csm.GetNativeControlReference(“32e4d0e6-b1af-49c7-ab37-3596955e2667”);

MessageBox.Show(this.VendorID);  
}

---

<div class="post-metadata">

**Author:** ![Dragos](https://www.epiusers.help/letter_avatar_proxy/v4/letter/d/59ef9b/32.png) [@Dragos](https://www.epiusers.help/u/Dragos)\
**Post date:** [February 17, 2022, 11:37am UTC](https://www.epiusers.help/t/passing-value-from-tracker-field-on-dashboard/87554/2 "2022-02-17T11:37:06Z")

</div>

Here’s what i use to declare it. You’ll need to take the Guid from the control’s properties:

 ![image](https://www.epiusers.help/uploads/default/original/3X/e/d/edfa90baa16655ca82bca39deec9fe636372d242.png)  
 ![image](https://www.epiusers.help/uploads/default/original/3X/9/5/95f2da3b117e477134d69416f19b7707613e52e8.png)

Then, you can use txtCName.Text = “some text”;

Dragos
