# Help on Displaying PartAdapter info in Order Entry

**URL:** <https://www.epiusers.help/t/help-on-displaying-partadapter-info-in-order-entry/48708>\
**Category:** Epicor ERP 10\
**Created:** [October 12, 2018, 1:36pm UTC](https://www.epiusers.help/t/help-on-displaying-partadapter-info-in-order-entry/48708 "2018-10-12T13:36:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Banderson](https://www.epiusers.help/user_avatar/www.epiusers.help/banderson/32/50875_2.png) [@Banderson](https://www.epiusers.help/u/Banderson)\
**Post date:** [October 12, 2018, 1:36pm UTC](https://www.epiusers.help/t/help-on-displaying-partadapter-info-in-order-entry/48708/1 "2018-10-12T13:36:47Z")

</div>

I am trying to set up a lookup to display some useful information on the order entry screen, specifically on the lines tab. I want to show a check box to show whether a part number is qty bearing or not. I have the PartAdapter working, except I am not using the data set correctly. I currently am trying to hang the lookup on on an dataview notification, but this fires multiple times when loading, I’m sure because the data view has more than one row, but I have only one checkbox to assign it to.

Is anyone willing to give me some pointers for how I can know which row is selected?

Thanks.

```auto
		if (args.NotifyType == EpiTransaction.NotifyType.Initialize)
		{
			try
			{
			var PartNum = edvOrderDtl.dataView[edvOrderDtl.Row]["PartNum"].ToString();
			PartAdapter pa = new PartAdapter(oTrans);
			pa.BOConnect();
			pa.GetByID(PartNum);
			if (pa.PartData.Part[0].QtyBearing = true)
				{
				QtyBearing.Checked = true;
				MessageBox.Show("this is a qty bearing part");
				}
				{
				QtyBearing.Checked = false;
				MessageBox.Show("This is NOT a qty bearing part");
				}
				//QtyBearing = pa.PartData.Part[0].QtyBearing.Value;
				pa.Dispose();
			}
			catch
			{
			}
		}

```

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [October 12, 2018, 1:37pm UTC](https://www.epiusers.help/t/help-on-displaying-partadapter-info-in-order-entry/48708/2 "2018-10-12T13:37:54Z")

</div>

I recommend you use a ForeignKeyView FKV it requires no code and it is much more efficient.  
Now if you want to do the adapter for adapter sake (learning) that’s a different story.

![image](https://epiusers.help/uploads/default/original/2X/2/2483b5073360d9d2accc7158290a48e5cec891bf.png)

 ![image](https://epiusers.help/uploads/default/original/2X/e/e4c3253d11bb1c33bca569fc04ad5ecb371cb230.png)  
 ![image](https://epiusers.help/uploads/default/original/2X/6/6f9f1b12fb8c8e8800a8fd0345afce2c56ca9251.png)

Then part will show up as an EpiDataView in the form and automatically lookup when the line changes.

---

<div class="post-metadata">

**Author:** ![Banderson](https://www.epiusers.help/user_avatar/www.epiusers.help/banderson/32/50875_2.png) [@Banderson](https://www.epiusers.help/u/Banderson)\
**Post date:** [October 12, 2018, 1:58pm UTC](https://www.epiusers.help/t/help-on-displaying-partadapter-info-in-order-entry/48708/3 "2018-10-12T13:58:52Z")

</div>

That’s a good idea. I haven’t been able to get FKV’s to work before, this will be a perfect opportunity to learn it.

---

<div class="post-metadata">

**Author:** ![Banderson](https://www.epiusers.help/user_avatar/www.epiusers.help/banderson/32/50875_2.png) [@Banderson](https://www.epiusers.help/u/Banderson)\
**Post date:** [October 15, 2018, 1:17pm UTC](https://www.epiusers.help/t/help-on-displaying-partadapter-info-in-order-entry/48708/4 "2018-10-15T13:17:35Z")

</div>

Quick question on FKV. The the view name that you type in whatever you want? Or is it something that has to match something. (Customization has some freetext fields that need to match exactly). A quick test seems to indicate it’s a “whatever I want” name, but I just wanted to be sure.

![image](https://epiusers.help/uploads/default/original/2X/a/a8a55941a0042116206722c987d066bed0547bd5.png)

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [October 15, 2018, 1:22pm UTC](https://www.epiusers.help/t/help-on-displaying-partadapter-info-in-order-entry/48708/5 "2018-10-15T13:22:14Z")

</div>

Whatever you want
