2016-06-28 43 views
0

我一直在Screen IN202500上工作,我需要自定義網格,並且我發現acumatica只能捕捉到我在網格上輸入的最後一行,這裏我就是這個意思 Add new Grid我不能使用表格標籤在網格中添加多行

當我按下保存,應用程序只保存最新數據 enter image description here

,這是我的DAC,可鏈接到InventoryItem

[PXDBInt()] 
    [PXDBDefault(typeof(InventoryItem.inventoryID))] 
    [PXParent(typeof(Select<InventoryItem, Where<InventoryItem.inventoryID,Equal<Current<ItemCotton.inventoryID>>>>))] 
    public int? InventoryID { get; set; } 

    public class inventoryID : IBqlField{} 

這是我的BLC擴展

public PXSelect<InventoryItem, Where<InventoryItem.inventoryID, Equal<Current<InventoryItem.inventoryID>>>> CurrentInventoryItem; 
    public PXSelect<ItemCotton, Where<ItemCotton.inventoryID, Equal<Current<InventoryItem.inventoryID>>>> Cotton; 

我的代碼有什麼問題嗎?爲什麼我onlu得到我輸入到網格的最後一行?

+1

將正確的密鑰信息添加到您的DAC。 – Hybridzz

回答

0

嘗試增加[PXPrimaryGraph(typeof運算(InventoryItem))] 到您的DAC類

0

在你的DAC擴展,添加IsKey =真,如果該字段唯一地標識該記錄。 [PXDBInt(IsKey=true)]