I have created a customization that adds a tab to the Stock Item screen. The tab contains a grid with a field with autonumber attribute. Manually everything work find I can add multiple lines to the grid, but imports only add one line and then stop. The grid has a custom dac and view. Below is part of the dac:
public class PAFactoryQuote : IBqlTable
{
#region RefNbr
[PXDBString(15, IsKey = true, IsUnicode = true, InputMask = "")]
[PXUIField(DisplayName = "Ref Nbr")]
[AutoNumber(typeof(PAQtSetup.numberingID), typeof(AccessInfo.businessDate))]
[PXDefault(PersistingCheck = PXPersistingCheck.Nothing)]
public virtual string RefNbr { get; set; }
public abstract class refNbr : PX.Data.BQL.BqlString.Field<refNbr> { }
#endregion
#region InventoryID
[PXDBInt(IsKey = true)]
[PXDBDefault(typeof(InventoryItem.inventoryID))]
[PXParent(typeof(SelectFrom<InventoryItem>.
Where<InventoryItem.inventoryID.IsEqual<PAFactoryQuote.inventoryID.FromCurrent>>))]
[PXUIField(DisplayName = "Inventory ID")]
public virtual int? InventoryID { get; set; }
public abstract class inventoryID : PX.Data.BQL.BqlInt.Field<inventoryID> { }
#endregion
#region VendorID
[PXDBInt()]
[PXUIField(DisplayName = "Vendor ID")]
[PXDimensionSelector("VENDOR", typeof(Search<VendorR.bAccountID, Where<VendorR.vStatus, Equal<VendorStatus.active>>>),
typeof(VendorR.acctCD),
new Type[] { typeof(VendorR.acctCD),
typeof(VendorR.acctName),
typeof(VendorR.vendorClassID),
typeof(VendorR.taxRegistrationID)},
Filterable = true,
SelectorMode = PXSelectorMode.TextModeSearch,
DescriptionField = typeof(VendorR.acctName))]
public virtual int? VendorID { get; set; }
public abstract class vendorID : PX.Data.BQL.BqlInt.Field<vendorID> { }
#endregion