Patrick Chen
Patrick Chen

Reputation: 1056

Dynamically Setting DropDown values not refreshing in UI

In Sales Order Entry I have a custom drop down on the line level and a custom drop down on the header. I want the list of values in the line level drop down to change depending on the value in the Header drop down level. I added a routine for SOOrder_RowSelected that has a switch depending on the value of the header value to set the list of values in the line level dropdown with PXStringListAttribute.SetList. This works the first time you load SO Entry, but when you move between records with different values selected for the header dropdown, the list of options in the line level dropdown will not update unless your refresh the page. Is it possible to refresh the control programmatically?

Upvotes: 0

Views: 646

Answers (2)

Dmitrii Naumov
Dmitrii Naumov

Reputation: 1712

You have to set MatrixMode to the dropdown field with not constant values. Like that:

    <px:PXGridColumn DataField="OrigTranType" Type="DropDownList" Width="80px" MatrixMode="true" />

Upvotes: 1

Sin
Sin

Reputation: 1864

Why dont you set the searchquey for your PXselector with condition Current?

Note: You should set the auto refresh of the selector to true

Upvotes: 0

Related Questions