I've created a simple DAC extension on SOLine in a customization project to add a string field.
I went through Code, +, New DAC Extension, and selected PX.Objects.SO.SOLine. When I publish the code below, no errors are reported but the field is not added to the database.
namespace PX.Objects.SO
{
public class SOLineExt : PXCacheExtension<PX.Objects.SO.SOLine>
{
#region UsrABCD
[PXDBString(10, InputMask=">CCCCCCCCCC")]
[PXUIField(DisplayName="ABCD")]
public virtual string UsrABCD { get; set; }
public abstract class usrABCD : PX.Data.BQL.BqlString.Field<usrABCD> { }
#endregion
}
}
I'm not sure I can generate a simpler example so I'm wondering what I've missed.
I was able to add the field by going through Data Access, +, and selecting PX.Objects.SO.SOLine.
question from:
https://stackoverflow.com/questions/65832007/why-didnt-this-field-get-added-to-to-soline-table 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…