Row-Copy or Dataview-copy for setting values equal to each other

I am trying to make a button that when clicked, will make a UD column part.UsableLength_c equal to part.PartLength. Should I use row-copy or dataview-copy to do this? I tried both, but neither one is working when I am clicking the button.

I looked at this thread to help. Copy DataView Row and add to another DataView - Kinetic ERP - Epicor User Help Forum

What am I doing wrong here?

Since both of your fields are in the same data view, Part, you should be able to just use row-update and set the UsableLength_c field equal to the PartLength field. Something like this

Tried this, and it did not work.

What did the chrome debug tools show was happening when that event fired?

It just said “onClick event started for btnEqualize”

EDIT: If you mean the browser dev tools, then I got “replace is not a function”

Yes I meant the browser dev tools.

This makes me think one of your other events that used replace is still trying to fire on the button click, maybe just add a whole new button so there aren’t any event wires getting crossed.

I made a new button entirely with a new ID and I am still seeing the replace is not a function error.

Alright I figured it out by looking at the following thread:
String replace (or other string functions) in application studio - Kinetic ERP - Epicor User Help Forum

It looks like I am supposed to put in “{Part.PartLength}”.replace(“part.UsableLength_C”) in the expression field
image

I still don’t think that is correct.

I mean it worked for me somehow. :person_shrugging: