Acumatica:如何将自定义字段转换为现金帐户选择器?

时间:2017-02-23 04:06:42

标签: attributes selector acumatica

我想将用户字段转换为任何现金帐户的选择器控件,但我无法理解。查看类似的字段属性我想要一个代码:

[CashAccount(typeof(Location.vBranchID), typeof(Search<CashAccount.cashAccountID>)]

但我无法让它发挥作用。

我需要在代码中更改什么?

1 个答案:

答案 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>))]

现在选择器正在工作。谢谢!