How to refresh the pega section in javascript in pega

How to refresh the pega section in javascript in pega

Hi @BhargaviB3103 you can use this for refresh the section in java script “pega.api.ui.actions.refreshSection(sectionname);”

@BhargaviB3103

 var options = {      
              section: sectionName,
              event: eventObject,
              dataTransform: dataTransformJSObject,
              activity: <strong>{name: “activityName", 
                         parameters: [{name: "param1", value: "Page1.prop1", isProperty: true}, 
                         {name: "param2", value: 123, isProperty: false}]}</strong>,
              submitOnRefresh: booleanVal
          }; 

          pega.api.ui.actions.refreshSection(options);