# Update child dashboard after exiting a field?

**URL:** <https://www.epiusers.help/t/update-child-dashboard-after-exiting-a-field/47849>\
**Category:** Epicor ERP 10\
**Tags:** customization\
**Created:** [September 17, 2018, 12:56pm UTC](https://www.epiusers.help/t/update-child-dashboard-after-exiting-a-field/47849 "2018-09-17T12:56:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mchinsky](https://www.epiusers.help/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@mchinsky](https://www.epiusers.help/u/mchinsky)\
**Post date:** [September 17, 2018, 12:56pm UTC](https://www.epiusers.help/t/update-child-dashboard-after-exiting-a-field/47849/1 "2018-09-17T12:56:05Z")

</div>

We have modified the Available to Build Dashboard and attached it to the SO screen. It looks at the quantity on the SO line and shows you the first level components needed and what the balance would be if this line was assembled. If any lines are negative, that’s a sign to the entry person we don’t have enough 1st level components in stock to build.

The problem is for the dashboard (linked to a tab on SO) to update, after entering the SO Line quantity you have to hit save, and then refresh. Is there a way to add a BPM or script so that upon exiting the quantity ordered field, it will automatically save & refresh so the related dashboard will update?

One of my consultants thinks it relates to the following:

Looking for C# coding in Customization for “After Field Change” on Order Qty in Sales Order Entry need line saved automatically.

edvOrderDtl = ((EpiDataView)(this.oTrans.EpiDataViews["OrderDtl"]));

if(args.Column.ColumnName == "OrderQty" && (int)args.ProposedValue \> 0)

---

<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:** [September 17, 2018, 1:27pm UTC](https://www.epiusers.help/t/update-child-dashboard-after-exiting-a-field/47849/2 "2018-09-17T13:27:51Z")

</div>

What happens if you just call an oTrans.Refresh();

---

<div class="post-metadata">

**Author:** ![mchinsky](https://www.epiusers.help/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@mchinsky](https://www.epiusers.help/u/mchinsky)\
**Post date:** [September 17, 2018, 2:12pm UTC](https://www.epiusers.help/t/update-child-dashboard-after-exiting-a-field/47849/3 "2018-09-17T14:12:55Z")

</div>

Thanks. Tried that. It does not save or create a new line. Is there a second command to save, that we can insert before this refresh?

---

<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:** [September 17, 2018, 5:07pm UTC](https://www.epiusers.help/t/update-child-dashboard-after-exiting-a-field/47849/4 "2018-09-17T17:07:33Z")

</div>

oTrans.Update() will save the record.

---

<div class="post-metadata">

**Author:** ![mchinsky](https://www.epiusers.help/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@mchinsky](https://www.epiusers.help/u/mchinsky)\
**Post date:** [September 17, 2018, 7:30pm UTC](https://www.epiusers.help/t/update-child-dashboard-after-exiting-a-field/47849/5 "2018-09-17T19:30:24Z")

</div>

ok, thanks, we got it to work. much appreciated
