Hi Everyone,
I'm working on version 25 R1 and have implemented logic to generate an auto-numbering sequence for a custom field (Batch Nbr) on a custom screen.
However, when I apply the AutoNumber attribute to the BatchNbr field, the value gets cleared whenever I select any other field in the header section. The numbering is not being generated as expected.
Note: The same code works correctly in 24 R1, so this issue appears to be specific to 25 R1.
Could you please guide me on what might be causing this issue or if there are any changes in 25 R1 related to AutoNumbering?
DAC Field:
[Serializable]
[PXCacheName("NBBLCBatchLabel")]
[PXPrimaryGraph(typeof(NBBatchLabelMaint1))]
public class NBBLCBatchLabel : PXBqlTable, IBqlTable
{
#region BatchNbr
[PXDBString(15, IsKey = true, IsUnicode = true)]
[PXUIField(DisplayName = "Batch Nbr", Required = true)]
[PXDefault]
[AutoNumber(typeof(Search<NBBLINSetupExt.usrNBBLNumberingID>), typeof(AccessInfo.businessDate))]
[PXSelector(
typeof(NBBLCBatchLabel.batchNbr),
typeof(NBBLCBatchLabel.storeID),
typeof(NBBLCBatchLabel.labelFormat),
typeof(NBBLCBatchLabel.status)
)]
[PX.Data.EP.PXFieldDescription]
public virtual string BatchNbr { get; set; }
public abstract class batchNbr : BqlString.Field<batchNbr> { }
#endregion
}
Graph Code:
public class NBBatchLabelMaint : PXGraph<NBBatchLabelMaint, NBBLCBatchLabel>
{
public SelectFrom<NBBLCBatchLabel>.View NBBLCHeaderView;
public SelectFrom<NBBLCLabelItems>
.Where<NBBLCLabelItems.batchNbr.IsEqual<NBBLCBatchLabel.batchNbr.FromCurrent>>
.View NBBLCDetails;
public PXSetup<INSetup> AutoSetupView;
}
CC:



