我想将用户字段转换为任何现金帐户的选择器控件,但我无法理解。查看类似的字段属性我想要一个代码:
[CashAccount(typeof(Location.vBranchID), typeof(Search<CashAccount.cashAccountID>)]
但我无法让它发挥作用。
我需要在代码中更改什么?
答案 0 :(得分:0)
在Atttribute字段中,我想念CA.CashAccount:
[PXDBString(32)]
[PXUIField(DisplayName="POS Cash Account",Visibility = PXUIVisibility.SelectorVisible)]
[PXSelector(typeof(Search<CashAccount.cashAccountID>))]
修复它并更改为通过帐户返回字段ID:
[PXDBString(32)]
[PXUIField(DisplayName="POS Cash Account",Visibility = PXUIVisibility.SelectorVisible)]
[PXSelector(typeof(Search<CA.CashAccount.cashAccountCD>))]
现在选择器正在工作。谢谢!