Posted: 27 Jun 2016 8:15 EDT Last activity: 8 Jul 2016 3:10 EDT
Section Refresh not happening on change of a drop down
I have a drop down field. On select of a value/On change of this drop down, I want to refresh a section below the current section.
In the actions tab, 'On change' - I have set the value of the drop down to a property called 'L1Decision'.
Next I want to refresh a section below. (Ignore the data transform in the screen shot - I'm trying to set the same property in the data transform as well, because Pega had a defect for drop downs and set values before. The values were not getting set. So tried to set in through a data transform as well)
I can see that the refresh is not happening.
Could you please let me know where I'm going wrong ?
1. How are you verifying whether refresh is called ? Do you expect any UI updates ? Did you check the tracer / network traces to check if the call to reload section was made ?
--> I am expecting a layout to be visible after the refresh, depending upon the value selected by the user from the drop down. ( The user just selects - does not submit. I need an 'On Change' not 'On Submit').
--> Just checked the tracer, the section refresh is happening (ReloadSection from the baseclas is being called). But cannot find the properties i'm trying to set on pyWorkPage (The data transform also has been called). I have even initialized it earlier to get it to the pyWorkPage.
2. Can just add OnChange and refresh and check if the refresh is called ? (remove the set value and data transform)
--> Tried and Working
3. In the actions tab, 'On change' - I have set the value of the drop down to a property called 'L1Decision'.
Are you attempting to set the value on the drop down after the user has chosen something ?
--> Exactly !!! On select of one of the values in the drop down, (Value should be set into the drop down property) and depending on this selected value, one extra section should be displayed.
Posted: 5 years ago
Posted: 8 Jul 2016 3:10 EDT
Mounika Thatikonda (MounikaThatikonda)
Senior Technical Solutions Engineer