我正嘗試在自己的DAC中創建一個字段來存儲'VendorID'。在費用聲明屏幕上創建供應商選擇器
首先,我試着用Acumatica屬性以顯示選擇,像下面
[VendorNonEmployeeActive(Visibility = PXUIVisibility.SelectorVisible, DescriptionField = typeof(Vendor.acctName), CacheGlobal = true, Filterable = true)]
和
[POVendor(Visibility = PXUIVisibility.SelectorVisible, DescriptionField = typeof(Vendor.acctName), CacheGlobal = true, Filterable = true)]
和其他幾個屬性。但要麼顯示員工數據要麼不顯示我甚至試圖寫下我自己的選擇器,其中BAccountRef是從BAccount派生的類。
[PXSelector(typeof(Search2<Vendor.bAccountID,
InnerJoin<BAccountRef, On<Vendor.bAccountID, Equal<BAccountRef.bAccountID>>>,
Where<Vendor.status, Equal<BAccountRef.status.active>,
And<Vendor.type, Equal<BAccountType.vendorType>>>>), new Type[] { typeof(BAccountRef.acctCD), typeof(BAccountRef.acctName) },
SubstituteKey = typeof(BAccountRef.acctCD))]
不幸的是,沒有運氣,從行爲上看,這些記錄似乎被自動過濾以顯示員工信息。我無法弄清楚這是如何發生的。如何使選擇器顯示供應商信息?這是如何自動過濾此圖中的員工?
同樣的結果,我所提到的。 :( – Hybridzz