I am not sure what I have done wrong but when I try to enter a new record for this custom DAC the key field blanks as soon as I am done entering and change focus to any other field.
My expectation is that the value entered would be the new key for the new record.
Is this field annotated improperly ? Attached is the whole DAC
#region AssetCD
[PXDBString(15, IsKey = true, IsUnicode = true, InputMask = ">CCCCCCCCCCCCCCC")]
[PXDefault]
[PXUIField(DisplayName = "Asset")]
[PXSelector(typeof(Search<assetCD>), new Type[]
{
typeof(assetCD),
typeof(assetTypeID),
typeof(assetStatus),
typeof(description),
}, DescriptionField = typeof(description))]
public virtual string AssetCD { get; set; }
public abstract class assetCD : PX.Data.BQL.BqlString.Field<assetCD> { }
#endregion