Acumatica实时动态下拉列表 [英] Acumatica real time Dynamic DropDown List
问题描述
我有以下用例:
Acumatica组合框/下拉列表,可以具有8个左右的值,其选择决定了用于组合框/下拉列表的表格/DAC.
例如:
- 如果当前
StatusProfileID
= WO1并且Status
= WCMP,WCMP是当前UserStatus
,然后UserStatus
= WRJT,WEXE,WCMP - 如果当前的
StatusProfileID
= WO1并且Status
= WRJT,WRJT是当前UserStatus
,然后UserStatus
= WEXE,WRJT
如何使用户状态显示为与当前状态一致,并在选择其他数据时实时更改
我遵循 Acumatica Dynamic MultiSelect Dropdown 的方法从状态表中选择数据>
我知道我必须使用自定义StringList"属性,但是如何执行此操作的细节尚不清楚.
一种动态更改字符串列表的方法是在适当的行选择事件中通过以下示例代码
if(某些条件)PXStringListAttribute.SetList< DAC.Field>(发送方,行,新的字符串[] {"WRJT","WEXE","WCMP"},新字符串[] {"WRJT","WEXE","WCMP"});别的PXStringListAttribute.SetList< DAC.Field>(发送方,行,新的字符串[] {"WEXE","WRJT"},新字符串[] {"WEXE","WRJT"});
I have the following use case:
Acumatica combo box / dropdown, which can have 8 or so values, the selection of which determines the table / DAC used to present in a Combo box/ drop down.
e.g.:
- if current
StatusProfileID
= WO1 andStatus
= WCMP , WCMP is CurrentUserStatus
, thenUserStatus
= WRJT, WEXE,WCMP - if current
StatusProfileID
= WO1 andStatus
= WRJT , WRJT is CurrentUserStatus
, thenUserStatus
= WEXE, WRJT
How can I make the user status that appears in accordance with the current status, and will change in real time while selecting another data
I follow the way of Acumatica Dynamic MultiSelect Dropdown to select data from status table
I understand that I'd have to use a Custom StringList Attribute, but the details of how to do this are not clear.
one way of dynamically changing the stringlist is by the below sample code in a proper rowselected event
if(somecondition)
PXStringListAttribute.SetList<DAC.Field>(sender, row,
new string[] { "WRJT", "WEXE", "WCMP" },
new string[] { "WRJT", "WEXE", "WCMP" });
else
PXStringListAttribute.SetList<DAC.Field>(sender, row,
new string[] { "WEXE", "WRJT" },
new string[] { "WEXE", "WRJT" });
这篇关于Acumatica实时动态下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!