# Clock into a job using an updatable dashboard or just a form with bpm on back end?

**URL:** <https://www.epiusers.help/t/clock-into-a-job-using-an-updatable-dashboard-or-just-a-form-with-bpm-on-back-end/39258>\
**Category:** Epicor ERP 10\
**Tags:** e10\
**Created:** [July 12, 2017, 8:05pm UTC](https://www.epiusers.help/t/clock-into-a-job-using-an-updatable-dashboard-or-just-a-form-with-bpm-on-back-end/39258 "2017-07-12T20:05:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![utaylor](https://www.epiusers.help/user_avatar/www.epiusers.help/utaylor/32/64664_2.png) [@utaylor](https://www.epiusers.help/u/utaylor)\
**Post date:** [July 12, 2017, 8:05pm UTC](https://www.epiusers.help/t/clock-into-a-job-using-an-updatable-dashboard-or-just-a-form-with-bpm-on-back-end/39258/1 "2017-07-12T20:05:28Z")

</div>

Hello All,

We have a dashboard that enters a labor transaction for a job. This is in place of using normal MES functionality. Does anyone know how to clock into a job using an updatable dashboard or by invoking business object methods.

This would help so much if anyone can start to point me in a direction.

Respectfully,

Utah

---

<div class="post-metadata">

**Author:** ![tkoch](https://www.epiusers.help/letter_avatar_proxy/v4/letter/t/439d5e/32.png) [@tkoch](https://www.epiusers.help/u/tkoch)\
**Post date:** [July 13, 2017, 12:53pm UTC](https://www.epiusers.help/t/clock-into-a-job-using-an-updatable-dashboard-or-just-a-form-with-bpm-on-back-end/39258/2 "2017-07-13T12:53:15Z")

</div>

The business object is Labor and the method to start with is StartActivity. You would then need to default the JobNum, AsmSeq, and OprSeq.

Run a trace and you’ll see all the relevant methods being called.

---

<div class="post-metadata">

**Author:** ![utaylor](https://www.epiusers.help/user_avatar/www.epiusers.help/utaylor/32/64664_2.png) [@utaylor](https://www.epiusers.help/u/utaylor)\
**Post date:** [July 13, 2017, 1:05pm UTC](https://www.epiusers.help/t/clock-into-a-job-using-an-updatable-dashboard-or-just-a-form-with-bpm-on-back-end/39258/3 "2017-07-13T13:05:58Z")

</div>

But how do I pass those to it from a form? Also, is there more that I can pass i.e. the employee num, time, etc? or does it take care of the timing, labordtl seq and everything?

---

<div class="post-metadata">

**Author:** ![tkoch](https://www.epiusers.help/letter_avatar_proxy/v4/letter/t/439d5e/32.png) [@tkoch](https://www.epiusers.help/u/tkoch)\
**Post date:** [July 13, 2017, 1:31pm UTC](https://www.epiusers.help/t/clock-into-a-job-using-an-updatable-dashboard-or-just-a-form-with-bpm-on-back-end/39258/4 "2017-07-13T13:31:43Z")

</div>

The StartActivity method will “setup” the LaborDtl record for you.

---

<div class="post-metadata">

**Author:** ![bw2868bond](https://www.epiusers.help/user_avatar/www.epiusers.help/bw2868bond/32/277_2.png) [@bw2868bond](https://www.epiusers.help/u/bw2868bond)\
**Post date:** [July 13, 2017, 1:40pm UTC](https://www.epiusers.help/t/clock-into-a-job-using-an-updatable-dashboard-or-just-a-form-with-bpm-on-back-end/39258/5 "2017-07-13T13:40:14Z")

</div>

Doing a trace of the “Start Activity” button click on the Epicor Form will yield lots of info for what you need to do.

In a nutshell, once you have the LaborHedSeq for the employee, Do a GetByID passing the LaborHedSeq. this returns a dataset (ds)  
Call the StartActivity method passing the LaborHedSeq, Activity Type, and ds  
Call the DefaultJobNum method passing ds, and JobNum  
Call the DefaultOprSeq method passing ds, and the OprSeq  
find the new row that was added and grab the ResourceID  
Call CheckWarnings method passing ds  
Call CheckEmployeeActivity method passing employeeNum, LaborHedSeq, JobNum, AssemblySeq, OprSeq, and the ResourceID you grabbed above  
Call SetClockInAndDisplayTimeMES method passing in ds  
Call Update method passing in ds
