# Job work flow/barcode scanning how to?

**URL:** <https://www.epiusers.help/t/job-work-flow-barcode-scanning-how-to/73848>\
**Category:** Epicor ERP 10\
**Tags:** barcoding\
**Created:** [December 18, 2020, 4:31pm UTC](https://www.epiusers.help/t/job-work-flow-barcode-scanning-how-to/73848 "2020-12-18T16:31:08Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![DaveS](https://www.epiusers.help/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://www.epiusers.help/u/DaveS)\
**Post date:** [January 4, 2021, 4:17pm UTC](https://www.epiusers.help/t/job-work-flow-barcode-scanning-how-to/73848/22 "2021-01-04T16:17:50Z")

</div>

This might be part of the answer for my remaining Issue #1 as this works…

```cs
	{
		// **Place Event Handling Code Here**
	if (oTrans.Update())
	    {
	        UD38Form.Close();
	    }
	
	}

```

Where to re load form?

---

<div class="post-metadata">

**Author:** ![DaveS](https://www.epiusers.help/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://www.epiusers.help/u/DaveS)\
**Post date:** [January 4, 2021, 8:34pm UTC](https://www.epiusers.help/t/job-work-flow-barcode-scanning-how-to/73848/23 "2021-01-04T20:34:21Z")

</div>

So for my issue #1 (of 2 issues) the following gives me the desired functionality. However I can see in the task bar a new window shows for every scan I do. I’m thinking I’ll probably end up exhausting memory or handles over time. Any ideas?

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

		LaunchFormOptions lfo = new LaunchFormOptions();
		lfo.IsModal = true;
		lfo.SuppressFormSearch = true;
		//lfo.ValueIn = txtEpiCustom1.Text;

		if (oTrans.Update())
		    {
	 	   ProcessCaller.LaunchForm(UD38Form, "Ice.UI.UD38Entry", lfo);
			//this.UD38Form.Close(); 
		    }
		
		}

```

As for issue #2, I’m still looking for the solution to get it to start from the sysconfig shortcut with the Detail tab having focus

---

<div class="post-metadata">

**Author:** ![DaveS](https://www.epiusers.help/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://www.epiusers.help/u/DaveS)\
**Post date:** [January 5, 2021, 9:28pm UTC](https://www.epiusers.help/t/job-work-flow-barcode-scanning-how-to/73848/24 "2021-01-05T21:28:04Z")

</div>

> [@DaveS](#):
>
> `ProcessCaller.LaunchForm(UD38Form, "Ice.UI.UD38Entry", lfo);`

Anyone know how to suppress the following prompt from that? “Attempting to launch Ice.UI.UD38Entry from itself is not logical. Do you want to launch a new instance?” with yes/no buttons

---

<div class="post-metadata">

**Author:** ![Mark\_Wonsil](https://www.epiusers.help/user_avatar/www.epiusers.help/mark_wonsil/32/51594_2.png) [@Mark\_Wonsil](https://www.epiusers.help/u/Mark_Wonsil)\
**Post date:** [January 5, 2021, 9:43pm UTC](https://www.epiusers.help/t/job-work-flow-barcode-scanning-how-to/73848/25 "2021-01-05T21:43:01Z")

</div>

Not sure but @hkeric.wci and @josecgomez wrote this about using LFO:

> [@LaunchFormOptions Basic Steps](https://www.epiusers.help/t/launchformoptions-basic-steps/63084):
>
> I am attempting to put a button on the DMR processing screen that pulls up our DMR Form with the DMR number populated from the DMR processing screen. So far I have been able to get the button to open the form, but not pass any info. Code that works to open BAQ Report form: ProcessCaller.LaunchForm (oTrans, “UDDMR”); What I think I need to have to pass information: LaunchFormOptions lfo = new LaunchFormOptions (); lfo.IsModal = true; lfo.ValueIn = ?????????; ProcessCaller.LaunchForm (oTrans, …

---

<div class="post-metadata">

**Author:** ![DaveS](https://www.epiusers.help/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://www.epiusers.help/u/DaveS)\
**Post date:** [January 7, 2021, 9:19pm UTC](https://www.epiusers.help/t/job-work-flow-barcode-scanning-how-to/73848/26 "2021-01-07T21:19:27Z")

</div>

Thanks @Mark_Wonsil, I had seen that thread before, but not sure if the info there could get me to where I needed to be.  
I ended up with this that works for me.

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

		LaunchFormOptions lfo = new LaunchFormOptions();
		lfo.IsModal = false;
		lfo.SuppressFormSearch = true;
		//lfo.ValueIn = txtEpiCustom1.Text;

			if (oTrans.Update())
		    {
			Process.Start("AutoHotkey.exe", "z:\\ahkenter.ahk");
			ProcessCaller.LaunchForm(UD38Form, "Ice.UI.UD38Entry", lfo);
		    }
		
	}

```

In ahkenter.ahk I have (didn’t need the delay. commented for now)  
;SetKeyDelay, 0  
send {enter}  
return

So if I scan 50 times in a day that uses about 170 MB memory. We won’t even need that many scans daily per station. We can just have windows task scheduler daily boot and run the following after on startup:  
A TinyTask macro exe that recorded:  
Windows Start, cmd /c “z:\scanjob” enter (I needed a place where names and locations didn’t change/move)  
which is a .bat file that has start “” “C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Epicor Software\Epicor ERP10.2 Client\epicor\ERP102300TESTV2 Environment.lnk”  
followed by me clicking my menu item for my UD38 customization.

---

<div class="post-metadata">

**Author:** ![DaveS](https://www.epiusers.help/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://www.epiusers.help/u/DaveS)\
**Post date:** [January 11, 2021, 6:01pm UTC](https://www.epiusers.help/t/job-work-flow-barcode-scanning-how-to/73848/27 "2021-01-11T18:01:30Z")

</div>

Update:  
I’ve found that this now works too after the ProcessCaller so no more open old windows

```cs
			// Beep at X Hz for X milliseconds
			Console.Beep(1000, 400);
			this.UD38Form.Close(); 

```

[Previous page](https://www.epiusers.help/t/job-work-flow-barcode-scanning-how-to/73848.md?page=1)
