Access Child Tables of Different Rows

I’ve got a pretty basic customization that allows me to add a Miscellaneous Charge to an Invoice line from a button click:
oTrans.GetNewInvcMisc();
edvARInvMisc.dataView[edvARInvMisc.Row][“MiscCode”] = “FBXC”;
edvARInvMisc.dataView[edvARInvMisc.Row][“DspDocMiscAmt”] = -357.60;
oTrans.Update(true);

The problem is it can only add the charge to the line I’m currently on. I know I’ve gone through this exercise before but I can’t recall how to make it add the charge to each line, or even a specific line other than the current line. Any refreshers appreciated.

You can change lines by setting the Row property of the current data view

1 Like

Thank you Jose. You’re the man as always!