# \#code

**URL:** https://www.epiusers.help/tag/code/344.md

[Latest](https://www.epiusers.help/latest.md) · [Categories](https://www.epiusers.help/categories.md) · [Tags](https://www.epiusers.help/tags.md)

---

## [Capture OrderHed, OrderDtl, and OrderRel ReqDate changes](https://www.epiusers.help/t/capture-orderhed-orderdtl-and-orderrel-reqdate-changes/122839)

<div class="topic-metadata">

**Author:** [@chriskrajewski](https://www.epiusers.help/u/chriskrajewski)\
**Replies:** 2\
**Last updated:** [February 21, 2025, 4:01pm UTC](https://www.epiusers.help/t/capture-orderhed-orderdtl-and-orderrel-reqdate-changes/122839 "2025-02-21T16:01:39Z")

</div>

Hey everyone, struggling to figure out how I do this. I need to capture any changes to the OrderHed, OrderDtl, and OrderRel RequestDate, and insert it to a UD table. The next step for this is displaying a Data Form, that…

---

## [Transaction Scope issues in Function to update table](https://www.epiusers.help/t/transaction-scope-issues-in-function-to-update-table/107779)

<div class="topic-metadata">

**Author:** [@LoganS](https://www.epiusers.help/u/LoganS)\
**Replies:** 7\
**Last updated:** [February 29, 2024, 6:21pm UTC](https://www.epiusers.help/t/transaction-scope-issues-in-function-to-update-table/107779 "2024-02-29T18:21:51Z")

</div>

I know what my issue is, but I don’t know how to solve it. I am trying to use a SvcContract in function C# block to update a tableset. This takes a Ice.IceDataContext, but the “Require Transaction” Db object is of typ…

---

## [Syntax Error in Calculated Field](https://www.epiusers.help/t/syntax-error-in-calculated-field/111744)

<div class="topic-metadata">

**Author:** [@justen](https://www.epiusers.help/u/justen)\
**Replies:** 4\
**Last updated:** [February 14, 2024, 4:45pm UTC](https://www.epiusers.help/t/syntax-error-in-calculated-field/111744 "2024-02-14T16:45:11Z")

</div>

Hi all. I’m sure this will be an easy one for most of you, but I’m not fluent in C#. As the title says, I have a calculated field in a BAQ that I can’t quite find the right syntax for. Can someone tell me why the uncom…

---

## [Reference UD Column in a Function](https://www.epiusers.help/t/reference-ud-column-in-a-function/105401)

<div class="topic-metadata">

**Author:** [@ehowley](https://www.epiusers.help/u/ehowley)\
**Replies:** 2\
**Last updated:** [July 26, 2023, 1:10pm UTC](https://www.epiusers.help/t/reference-ud-column-in-a-function/105401 "2023-07-26T13:10:26Z")

</div>

Good morning all, I need to use a UD column stored in our Customer table, but the following service call returns an error. CustomerTableset custTS = customerSvc.GetByCustID(custID, true); string poRef = custTS.Customer…

---

## [JobProd Table exists in 2 BOs](https://www.epiusers.help/t/jobprod-table-exists-in-2-bos/104183)

<div class="topic-metadata">

**Author:** [@ehowley](https://www.epiusers.help/u/ehowley)\
**Replies:** 8\
**Last updated:** [June 20, 2023, 1:52pm UTC](https://www.epiusers.help/t/jobprod-table-exists-in-2-bos/104183 "2023-06-20T13:52:31Z")

</div>

Hello all, Run into something I haven’t seen before. While trying to use the JobProd table, it exists in both SalesOrder BO and JobEntry BO, which are both referenced in my function. “The type JobProdRow exists in both…

---

## [Close Configurator via Code](https://www.epiusers.help/t/close-configurator-via-code/102743)

<div class="topic-metadata">

**Author:** [@mimtiaz](https://www.epiusers.help/u/mimtiaz)\
**Replies:** 7\
**Last updated:** [May 15, 2023, 7:25am UTC](https://www.epiusers.help/t/close-configurator-via-code/102743 "2023-05-15T07:25:14Z")

</div>

I have a product configurator that I would like to close/exit automatically via code based on selections made by a user. So basically mimic the same function as the red cross button at the top-right corner of our screens…

---

## [System.IO File.Copy](https://www.epiusers.help/t/system-io-file-copy/100608)

<div class="topic-metadata">

**Author:** [@Devin.Draeger](https://www.epiusers.help/u/Devin.Draeger)\
**Replies:** 5\
**Last updated:** [March 15, 2023, 2:55pm UTC](https://www.epiusers.help/t/system-io-file-copy/100608 "2023-03-15T14:55:29Z")

</div>

So i keep getting this error message when running this code. Could not find a part of the path ‘V:\\256\\25606P01.pdf’ code is below. Can anyone help me. error Message. System.IO.DirectoryNotFoundException: Could not…

---

## [CS0103 error](https://www.epiusers.help/t/cs0103-error/98931)

<div class="topic-metadata">

**Author:** [@danvoss](https://www.epiusers.help/u/danvoss)\
**Replies:** 0\
**Last updated:** [January 30, 2023, 6:15pm UTC](https://www.epiusers.help/t/cs0103-error/98931 "2023-01-30T18:15:39Z")

</div>

I’m puzzled by a CS0103 error in custom code. Why can I set a widget variable to dsCustomerCustomerFSPriceListRow.ListCode and then use the variable in custom code, but if I try to use dsCustomerCustomerFSPriceList…

---

## [Recommended Scripting Language for working with Epicor DLLs](https://www.epiusers.help/t/recommended-scripting-language-for-working-with-epicor-dlls/88090)

<div class="topic-metadata">

**Author:** [@joerojas](https://www.epiusers.help/u/joerojas)\
**Replies:** 11\
**Last updated:** [March 21, 2022, 3:06pm UTC](https://www.epiusers.help/t/recommended-scripting-language-for-working-with-epicor-dlls/88090 "2022-03-21T15:06:04Z")

</div>

Hello, We have several custom programs that were created in Visual Studio that reference the DLLs in the Epicor client folder to automate processes while going through the standard BO Methods. While they work well, I w…

---

## [Moving EDD views from 10.2.300 to 11.1.200 (C# Code Query)](https://www.epiusers.help/t/moving-edd-views-from-10-2-300-to-11-1-200-c-code-query/88571)

<div class="topic-metadata">

**Author:** [@markdamen](https://www.epiusers.help/u/markdamen)\
**Replies:** 0\
**Last updated:** [March 18, 2022, 12:47pm UTC](https://www.epiusers.help/t/moving-edd-views-from-10-2-300-to-11-1-200-c-code-query/88571 "2022-03-18T12:47:12Z")

</div>

Hi I’m trying to port EDD views from 10.2.300 to a test instance of 11.1.200 (2021.2). I was provided a script by support for doing so, because the Export function in EDD wasn’t introduced until 10.2.400. It’s failing…

---

## [BAQ TestExecutionToken](https://www.epiusers.help/t/baq-testexecutiontoken/81415)

<div class="topic-metadata">

**Author:** [@PatL](https://www.epiusers.help/u/PatL)\
**Replies:** 6\
**Last updated:** [August 17, 2021, 3:23am UTC](https://www.epiusers.help/t/baq-testexecutiontoken/81415 "2021-08-17T03:23:51Z")

</div>

Hi Guys, Just trying to optimize some baq’s in custom code and I was comparing my queryexecutiondataset in my c# code to the client trace. I found by adding TestExecutionToken i got a pretty significant speedup. Any i…

---

## [Need Some Help - Index Outside Bounds of Array](https://www.epiusers.help/t/need-some-help-index-outside-bounds-of-array/72139)

<div class="topic-metadata">

**Author:** [@Sire](https://www.epiusers.help/u/Sire)\
**Replies:** 4\
**Last updated:** [October 23, 2020, 4:34pm UTC](https://www.epiusers.help/t/need-some-help-index-outside-bounds-of-array/72139 "2020-10-23T16:34:22Z")

</div>

Hello you wonderful people! I am in need of your experience, expertise, and guidance once again. I have been racking my brain trying to figure out what is wrong with my code that is causing it to produce this Applicatio…

---

## [Custom Application, need help with modifying the Code for labels](https://www.epiusers.help/t/custom-application-need-help-with-modifying-the-code-for-labels/66914)

<div class="topic-metadata">

**Author:** [@Sire](https://www.epiusers.help/u/Sire)\
**Replies:** 1\
**Last updated:** [May 6, 2020, 4:41am UTC](https://www.epiusers.help/t/custom-application-need-help-with-modifying-the-code-for-labels/66914 "2020-05-06T04:41:42Z")

</div>

Alright, I am not sure if anyone can really help me on this one but I figured I would give it a shot. Also, sorry ahead of time for the novel you might be about to read…I like to be thorough when asking for help/assistan…

---

## [ERP 10.2.500.7 - 'Ice.BO.QueryExecutionDataSet' does not contain a definition for 'AddExecutionParameterRow' and no extension method 'AddExecutionParameterRow' accepting a first argument of type 'Ice.BO.QueryExecutionDataSet' could be found](https://www.epiusers.help/t/erp-10-2-500-7-ice-bo-queryexecutiondataset-does-not-contain-a-definition-for-addexecutionparameterrow-and-no-extension-method-addexecutionparameterrow-accepting-a-first-argument-of-type-ice-bo-queryexecutiondataset-could-be-found/64708)

<div class="topic-metadata">

**Author:** [@wcouch](https://www.epiusers.help/u/wcouch)\
**Replies:** 5\
**Last updated:** [February 20, 2020, 6:53pm UTC](https://www.epiusers.help/t/erp-10-2-500-7-ice-bo-queryexecutiondataset-does-not-contain-a-definition-for-addexecutionparameterrow-and-no-extension-method-addexecutionparameterrow-accepting-a-first-argument-of-type-ice-bo-queryexecutiondataset-could-be-found/64708 "2020-02-20T18:53:48Z")

</div>

I’m trying to execute a BAQ from code within a customization I’m building. I’m receiving the following error when I attempt to compile my custom code: ‘Ice.BO.QueryExecutionDataSet’ does not contain a definition for ‘Ad…

---

## [QuoteEntry customization create misc charge](https://www.epiusers.help/t/quoteentry-customization-create-misc-charge/62591)

<div class="topic-metadata">

**Author:** [@LeoC](https://www.epiusers.help/u/LeoC)\
**Replies:** 3\
**Last updated:** [December 10, 2019, 11:06am UTC](https://www.epiusers.help/t/quoteentry-customization-create-misc-charge/62591 "2019-12-10T11:06:05Z")

</div>

Hi all! I am working on a customization for the QuoteEntry. Baiscally I have done all the logic to get a field I want (cost of the extra painting). Now I need to create a misc charge line on the order in which I can a…

---

## [uBAQ BPM Runtime Error](https://www.epiusers.help/t/ubaq-bpm-runtime-error/58664)

<div class="topic-metadata">

**Author:** [@Randy](https://www.epiusers.help/u/Randy)\
**Replies:** 4\
**Last updated:** [August 13, 2019, 10:40pm UTC](https://www.epiusers.help/t/ubaq-bpm-runtime-error/58664 "2019-08-13T22:40:40Z")

</div>

We have a uBAQ/Dashboard that our field service team uses to assign a selected a “Installer” to a UD field on the SO -“Install” Line (OrderDtl). The Installer is a record on in the Vendor table --aka “Supplier” in the Ep…

---

## [Code Performance Question: Get & Convert two DateTime to strings](https://www.epiusers.help/t/code-performance-question-get-convert-two-datetime-to-strings/58366)

<div class="topic-metadata">

**Author:** [@Randy](https://www.epiusers.help/u/Randy)\
**Replies:** 2\
**Last updated:** [August 2, 2019, 3:02pm UTC](https://www.epiusers.help/t/code-performance-question-get-convert-two-datetime-to-strings/58366 "2019-08-02T15:02:18Z")

</div>

I need to get the OrderDtl NeedBy and ShipBy dates, not a hard thing and I’ve done it plenty of times but in this case I need both and wondering which is more efficient code; two DB calls direct to the field or one DB …

---

## [Determine client type in a BPM?](https://www.epiusers.help/t/determine-client-type-in-a-bpm/58065)

<div class="topic-metadata">

**Author:** [@Randy](https://www.epiusers.help/u/Randy)\
**Replies:** 2\
**Last updated:** [July 24, 2019, 4:15pm UTC](https://www.epiusers.help/t/determine-client-type-in-a-bpm/58065 "2019-07-24T16:15:30Z")

</div>

Is there a way in a BPM to tell if the user client is a MES station vs a full smart client, etc? I know I can get the user’s computer name but client type would be better for how I need to restrict users on this reques…

---

## [BPM QuoteDtl for Kit Components](https://www.epiusers.help/t/bpm-quotedtl-for-kit-components/57442)

<div class="topic-metadata">

**Author:** [@Randy](https://www.epiusers.help/u/Randy)\
**Replies:** 1\
**Last updated:** [July 2, 2019, 8:41pm UTC](https://www.epiusers.help/t/bpm-quotedtl-for-kit-components/57442 "2019-07-02T20:41:03Z")

</div>

I need a BPM that’ll update UD fields on the Kit Parent quote line of a component priced kit on a quote. The thing is, all the kit’s “component” parts are really also lines in the QuoteDtl table. In my code, the loops a…

---

## [Restrict delete of UD Table row on form](https://www.epiusers.help/t/restrict-delete-of-ud-table-row-on-form/56784)

<div class="topic-metadata">

**Author:** [@Randy](https://www.epiusers.help/u/Randy)\
**Replies:** 4\
**Last updated:** [June 20, 2019, 3:14pm UTC](https://www.epiusers.help/t/restrict-delete-of-ud-table-row-on-form/56784 "2019-06-20T15:14:05Z")

</div>

This is my first time working with a UD table and this thread was a big help. I added a UD table to OrderHed and change the menu item from the cryptic “New UDxx” wording. Now I need to restrict deleting a row if the row…

---

## [BPM Code Reference- Get Earliest aka Min() OrderDtl Date by OrderNum](https://www.epiusers.help/t/bpm-code-reference-get-earliest-aka-min-orderdtl-date-by-ordernum/56766)

<div class="topic-metadata">

**Author:** [@Randy](https://www.epiusers.help/u/Randy)\
**Replies:** 0\
**Last updated:** [June 13, 2019, 3:59pm UTC](https://www.epiusers.help/t/bpm-code-reference-get-earliest-aka-min-orderdtl-date-by-ordernum/56766 "2019-06-13T15:59:57Z")

</div>

Putting this here for future reference and hopefully help someone else out. I have a BPM alert where I need to send the earliest NeedBy and ShipBy on OrderDtl on a particular OrderNum. Basically I needed the C# / LINQ …

---

## [Error when deploy dashboard](https://www.epiusers.help/t/error-when-deploy-dashboard/56106)

<div class="topic-metadata">

**Author:** [@vbourbeau](https://www.epiusers.help/u/vbourbeau)\
**Replies:** 19\
**Last updated:** [May 25, 2019, 10:41am UTC](https://www.epiusers.help/t/error-when-deploy-dashboard/56106 "2019-05-25T10:41:24Z")

</div>

Hi, We use Epicor 9.05 with OpenEdge. I want to add a custom code to a dashboard to allow a checkbox to be cheched in when we open the dashboard. When I test the code all is ok but when I deploy, I got the error: Erro…

---

## [Save and load from UDEntry custom code to UD table](https://www.epiusers.help/t/save-and-load-from-udentry-custom-code-to-ud-table/52486)

<div class="topic-metadata">

**Author:** [@Jaredible](https://www.epiusers.help/u/Jaredible)\
**Replies:** 0\
**Last updated:** [February 12, 2019, 2:49pm UTC](https://www.epiusers.help/t/save-and-load-from-udentry-custom-code-to-ud-table/52486 "2019-02-12T14:49:32Z")

</div>

I am currently trying to develop in a UDEntry screen. I have the layout finished but I need to know how to save and load the dataview data to its corresponding UD table using its adapter. I am using UD102Entry and using…
