Acumatica实时动态下拉列表 [英] Acumatica real time Dynamic DropDown List

查看:58
本文介绍了Acumatica实时动态下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下用例:

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 and Status = WCMP , WCMP is Current UserStatus, then UserStatus = WRJT, WEXE,WCMP
  • if current StatusProfileID = WO1 and Status = WRJT , WRJT is Current UserStatus, then UserStatus = 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.

Screen Drop Down List

Data from table status

解决方案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆