Multi select values are getting lost on refresh second time
Multi select values are getting lost on refreshing second time.
Steps to Reproduce
1.Create a section in @baseclass(parent sec).
2.Include pxLocalAction section and one @baseclass section(sec2) in the parent section. Note: pxLocalAction uses work- flowaction, with a clipboard pagecontext.
3. In work- section, user has a multiselect control, and a button with "Refresh This Section Run Activity" and "Refresh Other Section @baseclass sec2".
5.Select value from multiselect and click on button.
6.First time on button click works expected.
7.Try selecting other values in multiselect and again click on button.
8.Observe that new values are not going to clipboard.
A defect in Pegasystems’ code or rules.
doBeforeSubmit API of multiselect is getting called for Refresh Other section case as well where this control is not getting submitted to server.
In this case isUpadated is set to true on the select box. And, when we try refreshing the section again using Search button click for the second time after changing some values, doBeforeSubmit API logic won't be executed due to existing isUpdated attribute. There is no parameter to doBeforeSubmit to know what is being reloaded.
Perform the following local-change:
Add 'Refresh This Section' as third action on button click.
0% found this useful