DEMO2
In this post we are going to delve into the JavaScript code that Pega uses to execute action sets in a control. Before we start For this post, let's create a very simple section with the following configuration: Create a .YesNo property with "Yes" and "No" as accepted values that are defined in a local list. Add a dropdown with the .YesNo property as its source. Add an Action set to the dropdown on "Change" event: A Post value action, and a Run Script action that will show an alert dialog box when the .YesNo property has the "Yes" value. As a result, a message will appear when the "Yes" option is selected. Also, the selected value will be posted to the server. Now, let's start our study 😀. Descriptors Before we go through the action processing, let's define two concepts: The Event descriptor and the Control descriptor . The Event descriptor The...