# Perform Action After Data has Loaded

**URL:** <https://www.epiusers.help/t/perform-action-after-data-has-loaded/57393>\
**Category:** Epicor ERP 10\
**Tags:** customization\
**Created:** [July 1, 2019, 6:03pm UTC](https://www.epiusers.help/t/perform-action-after-data-has-loaded/57393 "2019-07-01T18:03:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Woods](https://www.epiusers.help/user_avatar/www.epiusers.help/jason_woods/32/80101_2.png) [@Jason\_Woods](https://www.epiusers.help/u/Jason_Woods)\
**Post date:** [July 1, 2019, 6:03pm UTC](https://www.epiusers.help/t/perform-action-after-data-has-loaded/57393/1 "2019-07-01T18:03:43Z")

</div>

I would like to perform some functions after the Part Entry screen has loaded a record. I want to ensure it is done loading the record (not simply done with the first row of a dataview) before I start running my code. What method can I use to accomplish this?

---

<div class="post-metadata">

**Author:** ![Chris\_Conn](https://www.epiusers.help/user_avatar/www.epiusers.help/chris_conn/32/93797_2.png) [@Chris\_Conn](https://www.epiusers.help/u/Chris_Conn)\
**Post date:** [July 1, 2019, 6:05pm UTC](https://www.epiusers.help/t/perform-action-after-data-has-loaded/57393/2 "2019-07-01T18:05:50Z")

</div>

Could you use AfterAdapter (GetByID, GetRows. GetList)?

---

<div class="post-metadata">

**Author:** ![Jason\_Woods](https://www.epiusers.help/user_avatar/www.epiusers.help/jason_woods/32/80101_2.png) [@Jason\_Woods](https://www.epiusers.help/u/Jason_Woods)\
**Post date:** [July 1, 2019, 6:11pm UTC](https://www.epiusers.help/t/perform-action-after-data-has-loaded/57393/3 "2019-07-01T18:11:08Z")

</div>

You would think so, but the screen is not yet populated with that data. If I recall correctly, the EpiDataViews aren’t filled yet at that point.

---

<div class="post-metadata">

**Author:** ![Chris\_Conn](https://www.epiusers.help/user_avatar/www.epiusers.help/chris_conn/32/93797_2.png) [@Chris\_Conn](https://www.epiusers.help/u/Chris_Conn)\
**Post date:** [July 1, 2019, 6:17pm UTC](https://www.epiusers.help/t/perform-action-after-data-has-loaded/57393/4 "2019-07-01T18:17:01Z")

</div>

Seems convoluted but you could potentially throw an event on EpiNotification, Initialize when adapter rows = dataview rows

---

<div class="post-metadata">

**Author:** ![Jason\_Woods](https://www.epiusers.help/user_avatar/www.epiusers.help/jason_woods/32/80101_2.png) [@Jason\_Woods](https://www.epiusers.help/u/Jason_Woods)\
**Post date:** [July 1, 2019, 6:19pm UTC](https://www.epiusers.help/t/perform-action-after-data-has-loaded/57393/5 "2019-07-01T18:19:08Z")

</div>

That would fire way too often though, right? I only need it to fire once.  
EDIT:  
I created a variable called currPart. I then can compare the edvPart.CurrentDataRow[“PartNum”] value to this. If it is different, then run my code and set currPart. Seems to work well. I don’t like putting things in EpiViewNotification because it runs so much, but it saves a lot of coding… 😄

---

<div class="post-metadata">

**Author:** ![Chris\_Conn](https://www.epiusers.help/user_avatar/www.epiusers.help/chris_conn/32/93797_2.png) [@Chris\_Conn](https://www.epiusers.help/u/Chris_Conn)\
**Post date:** [July 1, 2019, 7:22pm UTC](https://www.epiusers.help/t/perform-action-after-data-has-loaded/57393/6 "2019-07-01T19:22:25Z")

</div>

Yeah it does fire a ton. When I have to use, I typically just add a bool condition that says the last time I ran, I met my condition, not unlike what you’ve done. It’s a pain, but sometimes we gotta pay the ERP piper haha
