Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Acumatica real time Dynamic DropDown List

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

like image 283
Aditya Harsono Avatar asked Jan 21 '26 10:01

Aditya Harsono


1 Answers

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" });
like image 106
Sin Avatar answered Jan 22 '26 23:01

Sin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!