# UI Customization, DD or BPM

**URL:** <https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445>\
**Category:** Epicor ERP 10\
**Tags:** customization, data-directive, bpm\
**Created:** [December 7, 2018, 3:52pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445 "2018-12-07T15:52:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ckrusen](https://www.epiusers.help/user_avatar/www.epiusers.help/ckrusen/32/50584_2.png) [@ckrusen](https://www.epiusers.help/u/ckrusen)\
**Post date:** [December 7, 2018, 3:52pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/1 "2018-12-07T15:52:02Z")

</div>

I’ve added three UD fields to the OrderHed table. Two of them get user entered values, the third is calculated form the other two.

Best to do this as customized Order Entry form, as a In-Tran DD, or a BPM?

(and by “best” I mean “easiest to implement and maintain, and least likely to cause issues elsewhere”)

---

<div class="post-metadata">

**Author:** ![Aaron\_Moreng](https://www.epiusers.help/user_avatar/www.epiusers.help/aaron_moreng/32/745_2.png) [@Aaron\_Moreng](https://www.epiusers.help/u/Aaron_Moreng)\
**Post date:** [December 7, 2018, 3:56pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/2 "2018-12-07T15:56:08Z")

</div>

easiest way is either a method or data directive BPM. Why? Because BPMs can be turned on/off for everyone, deployed everywhere (server side vs. client), and they are portable. Secondly, if you ever input data other than through the UI, youll get the same behavior.  
BPM all the way from me.

---

<div class="post-metadata">

**Author:** ![ckrusen](https://www.epiusers.help/user_avatar/www.epiusers.help/ckrusen/32/50584_2.png) [@ckrusen](https://www.epiusers.help/u/ckrusen)\
**Post date:** [December 7, 2018, 4:01pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/3 "2018-12-07T16:01:04Z")

</div>

I started down the path of the DD. I figured it should be an In-Tran so it updates the third field on the UI.

But I can’t seem to do a simple Set Filed widget. I’m trying to set the field BidMarginPct. But the expression gives me the following error:

 ![image](https://epiusers.help/uploads/default/original/2X/b/b3d6c678e24654e9824e9de95a104b53ac55e636.png)

I’ve regen’d the data model and cycled the App Pool IIS. The thre fields on the UI show up, values can be entered and does save.

---

<div class="post-metadata">

**Author:** ![dhewi](https://www.epiusers.help/user_avatar/www.epiusers.help/dhewi/32/14166_2.png) [@dhewi](https://www.epiusers.help/u/dhewi)\
**Post date:** [December 7, 2018, 4:12pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/4 "2018-12-07T16:12:48Z")

</div>

Did you try the ttOrderHed[“BidMargin\_c”] syntax? I’ve never worked out why that’s sometimes needed, but it does seem to be.

---

<div class="post-metadata">

**Author:** ![ckrusen](https://www.epiusers.help/user_avatar/www.epiusers.help/ckrusen/32/50584_2.png) [@ckrusen](https://www.epiusers.help/u/ckrusen)\
**Post date:** [December 7, 2018, 4:15pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/5 "2018-12-07T16:15:27Z")

</div>

Yes. But it complained about converting a ‘string’ to an ‘int’. Which I assumed the array reference needs to be an integer, and not a string indicating which element.

---

<div class="post-metadata">

**Author:** ![Aaron\_Moreng](https://www.epiusers.help/user_avatar/www.epiusers.help/aaron_moreng/32/745_2.png) [@Aaron\_Moreng](https://www.epiusers.help/u/Aaron_Moreng)\
**Post date:** [December 7, 2018, 4:16pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/6 "2018-12-07T16:16:38Z")

</div>

I’m usually not a fan of direct field math. I like to build in some conversions and checks before trying to do math.

---

<div class="post-metadata">

**Author:** ![dhewi](https://www.epiusers.help/user_avatar/www.epiusers.help/dhewi/32/14166_2.png) [@dhewi](https://www.epiusers.help/u/dhewi)\
**Post date:** [December 7, 2018, 4:17pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/7 "2018-12-07T16:17:03Z")

</div>

In those cases, (int)ttOrderHed[“BidMargin\_c”] usually works, or at a pinch (int?)ttOrderHed[“BidMargin\_c”] ?? 0.

---

<div class="post-metadata">

**Author:** ![ckrusen](https://www.epiusers.help/user_avatar/www.epiusers.help/ckrusen/32/50584_2.png) [@ckrusen](https://www.epiusers.help/u/ckrusen)\
**Post date:** [December 7, 2018, 4:17pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/8 "2018-12-07T16:17:47Z")

</div>

I couldn’t even assign a variable the value of ttOrderHed.BidMargin\_c

Same “OrderHed TempRow does not conatins …” error

---

<div class="post-metadata">

**Author:** ![Aaron\_Moreng](https://www.epiusers.help/user_avatar/www.epiusers.help/aaron_moreng/32/745_2.png) [@Aaron\_Moreng](https://www.epiusers.help/u/Aaron_Moreng)\
**Post date:** [December 7, 2018, 4:18pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/9 "2018-12-07T16:18:42Z")

</div>

Did you try what @dhewi suggested?

---

<div class="post-metadata">

**Author:** ![ckrusen](https://www.epiusers.help/user_avatar/www.epiusers.help/ckrusen/32/50584_2.png) [@ckrusen](https://www.epiusers.help/u/ckrusen)\
**Post date:** [December 7, 2018, 4:19pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/10 "2018-12-07T16:19:53Z")

</div>

I don’t think it’s amismatch of types between the ttOrderHed field and the target field, but rather it doesn’t like a string being between the […]

---

<div class="post-metadata">

**Author:** ![Aaron\_Moreng](https://www.epiusers.help/user_avatar/www.epiusers.help/aaron_moreng/32/745_2.png) [@Aaron\_Moreng](https://www.epiusers.help/u/Aaron_Moreng)\
**Post date:** [December 7, 2018, 4:21pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/11 "2018-12-07T16:21:54Z")

</div>

Oh I see. It’s ttOrderHedRow.YourField\_c, not ttOrderHed.YourField\_c

---

<div class="post-metadata">

**Author:** ![ckrusen](https://www.epiusers.help/user_avatar/www.epiusers.help/ckrusen/32/50584_2.png) [@ckrusen](https://www.epiusers.help/u/ckrusen)\
**Post date:** [December 7, 2018, 4:23pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/12 "2018-12-07T16:23:33Z")

</div>

I think I may be a victim of only cycling the ISS for the specific App (my test environment), instead of the IISRESET

---

<div class="post-metadata">

**Author:** ![Aaron\_Moreng](https://www.epiusers.help/user_avatar/www.epiusers.help/aaron_moreng/32/745_2.png) [@Aaron\_Moreng](https://www.epiusers.help/u/Aaron_Moreng)\
**Post date:** [December 7, 2018, 4:24pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/13 "2018-12-07T16:24:13Z")

</div>

No…just type the field correctly

---

<div class="post-metadata">

**Author:** ![ckrusen](https://www.epiusers.help/user_avatar/www.epiusers.help/ckrusen/32/50584_2.png) [@ckrusen](https://www.epiusers.help/u/ckrusen)\
**Post date:** [December 7, 2018, 4:27pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/14 "2018-12-07T16:27:06Z")

</div>

Just setting the expression to:  
`ttOrderHedRow.BidMargin_c`

yields

![image](https://epiusers.help/uploads/default/original/2X/7/73d9ef108625303eb00d87ba5623096ad0144d35.png)

EDIT: that expression is what I get by double clicking the field in the Available Variables pane.

---

<div class="post-metadata">

**Author:** ![Aaron\_Moreng](https://www.epiusers.help/user_avatar/www.epiusers.help/aaron_moreng/32/745_2.png) [@Aaron\_Moreng](https://www.epiusers.help/u/Aaron_Moreng)\
**Post date:** [December 7, 2018, 4:28pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/15 "2018-12-07T16:28:00Z")

</div>

Hmm, so you added the field in Extended UD Table Maintenance, regenerated the data model, and then recycled IIS correct?

---

<div class="post-metadata">

**Author:** ![ckrusen](https://www.epiusers.help/user_avatar/www.epiusers.help/ckrusen/32/50584_2.png) [@ckrusen](https://www.epiusers.help/u/ckrusen)\
**Post date:** [December 7, 2018, 4:30pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/16 "2018-12-07T16:30:48Z")

</div>

Yes. but by “Recycled” I did it in the EAC. Not via ISSRESET on a command line.

From the help:  
 ![image](https://epiusers.help/uploads/default/original/2X/2/2ed90f38677005cbaea8d676d56be99f790fa9cf.png)

Emphasis on “May be able to” …

---

<div class="post-metadata">

**Author:** ![dhewi](https://www.epiusers.help/user_avatar/www.epiusers.help/dhewi/32/14166_2.png) [@dhewi](https://www.epiusers.help/u/dhewi)\
**Post date:** [December 7, 2018, 4:33pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/17 "2018-12-07T16:33:18Z")

</div>

I would have interpreted that as the compiler not knowing the type of the field, but you probably know better than I do. In which case I’m out of ideas, sorry! I’ve yet to have all three versions fail.

It is certainly very odd that the editor allows you to select those fields and then still complains. The fact that they’re showing up surely means that the data model regeneration has done its job? We’ve never had to do an IISRESET for that, though now we have more than one app server we do have to do it in both.

---

<div class="post-metadata">

**Author:** ![Aaron\_Moreng](https://www.epiusers.help/user_avatar/www.epiusers.help/aaron_moreng/32/745_2.png) [@Aaron\_Moreng](https://www.epiusers.help/u/Aaron_Moreng)\
**Post date:** [December 7, 2018, 4:33pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/18 "2018-12-07T16:33:55Z")

</div>

In extended table maintenance, does it show that the OrderHed table is in sync?

---

<div class="post-metadata">

**Author:** ![ckrusen](https://www.epiusers.help/user_avatar/www.epiusers.help/ckrusen/32/50584_2.png) [@ckrusen](https://www.epiusers.help/u/ckrusen)\
**Post date:** [December 7, 2018, 4:34pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/19 "2018-12-07T16:34:38Z")

</div>

Yup

![image](https://epiusers.help/uploads/default/original/2X/4/46c2256aa7a583f2c52b3c31e0b256cdb151b74e.png)

---

<div class="post-metadata">

**Author:** ![Aaron\_Moreng](https://www.epiusers.help/user_avatar/www.epiusers.help/aaron_moreng/32/745_2.png) [@Aaron\_Moreng](https://www.epiusers.help/u/Aaron_Moreng)\
**Post date:** [December 7, 2018, 4:37pm UTC](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445/20 "2018-12-07T16:37:12Z")

</div>

Hmm, this is weird. Can you try regenerating the data model again and do the IIS recycle? I’ve seen weird things before with the data model regen…

[Next page](https://www.epiusers.help/t/ui-customization-dd-or-bpm/50445.md?page=2)
