I created three DAC fields in a custom DAC as follows. When the user is redirected to the screen, those values are automatically filled. However, when I press save, the LotSerialNbr and Quantity fields are reset to empty and save as null in the database. Meanwhile, the ProductionNbr field, which is PXSelectors, are working fine.
// Ensure these fields are valid before persisting if (string.IsNullOrEmpty(row.LotSerialNbr)) throw new PXRowPersistingException(nameof(row.LotSerialNbr), null, "Lot Serial Nbr cannot be empty."); }
// Ensure these fields are valid before persisting if (string.IsNullOrEmpty(row.LotSerialNbr)) throw new PXRowPersistingException(nameof(row.LotSerialNbr), null, "Lot Serial Nbr cannot be empty."); }
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.