Getting Error : Invalid Column NoteId

2019-08-20 09:04发布

问题:

I have requirement to add Image for each serial number.

I have extended the INItemLotSerial and added ImageUrl & NoteID field

[PXTable(typeof(INItemLotSerial.inventoryID),
 typeof(INItemLotSerial.lotSerialNbr),
 IsOptional = true)]
public class InfoINItemLotSerialExtNV : PXCacheExtension<INItemLotSerial>

The DAC Having the following code for NoteID

#region NoteID
    public abstract class noteID : PX.Data.IBqlField
    {
    }
    protected Guid? _NoteID;
    [PXNote]
    public virtual Guid? NoteID
    {
        get
        {
            return this._NoteID;
        }
        set
        {
            this._NoteID = value;
        }
    }
    #endregion

while saving the Purchase receipt document after entering serial numbers, I am getting error Invalid Column : NoteID

`

回答1:

Currently, PXNoteAttribute do not support extension tables, so your only option is use a regular extension for the INItemLotSerial DAC over an extension table.



标签: acumatica