Hello Community. I have a custom screen linked to a custom table and numbering sequence. When creating a new record and saving, it updates the primary keys numbering sequence. Upon doing so, it shows a duplicate record which doesn’t actually save, but you need to refresh the page to clear it. The first line in the highlighted screenshot below is the one I added, before hitting save and because it is an auto numbering sequence it shows the one line with “NEW” and then after save, populated and an extra line pops up like below. If I refresh or hit cancel, it removes the duplicate because its not actually saved.

Below is the graph. The persist method is what I was trying to do to get the duplicate to clear automatically. I’m sure there is a very simple way to fix this but haven’t had any luck.
public class ImportBatchEntry : PXGraph<ImportBatchEntry>
{
public PXSavePerRow<Imports> Save;
public PXCancel<Imports> Cancel;
public PXSelect<Imports> Document;
public PXSetup<SOSetup> Setup;
public override void Persist()
{
base.Persist();
this.Caches.Clear();
this.Document.View.Clear();
this.Actions.PressCancel();
this.Document.View.RequestRefresh();
}
}Thoughts? Thanks for the help!
Adam
