Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

How to automatically refresh a section after a user updates a field in another section

Updated on September 25, 2019


In some work forms, when a user changes a property value in one section, it is desirable to update the values of fields in other sections. The update typically occurs when a user clicks a checkbox or radio button, selects a value from a prompt, or enters text. The example in this article describes how to configure a work form so that —

When a user selects a manager name from a Dynamic Select drop-down list in the top section....

...a new section named Manager Information appears, and displays the manager's information in read-only format.

If the user later selects a different manager name, the system similarly refreshes the Manager Information section with updated values.

The configuration uses the Client Event Editor, which sets up a JavaScript event in the user's browser. When the event occurs, the browser communicates with the Process Commander server using AJAX techniques. The server computes the updated fields and returns them to the browser to refresh the display.

In V6.2, you can refresh any section as follows:

– Using pxButton, pxIcon, or pxLink controls. See How to refresh any section on a user form using a click-action control.
– Specifying a Refresh When condition in an included section without having to use the Client Event Editor. See the Refresh on Change example at > User Interface > UI Gallery.

Suggested Approach

Do the following:

  1. Open the harness rule containing the sections. In this example, the ManagerDynamicSelect section contains the controlling field — the Dynamic Select control (using the property value .ManagerData.ID). The ManagerDynamicSelectInfo section contains the controlled fields — Title, Office, and Phone read-only text boxes. Both sections are at the same level within the NewHeader section as shown here:
  2. In the ManagerDynamicSelect section, select the cell containing the Manager Dynamic Select control.
  3. Open the .ManagerData.ID Cell Properties panel by clicking the magnifying glass icon .

  4. In the panel, click the magnifying glass icon next to the Behavior field. This opens the Client Event Editor.
  5. In the Editor, select On Changein the Event field and Apply Conditions in the Action field.
  6. Click Save to close the Editor. The panel looks like this:
  7. Close the panel.
  8. Open the the ManagerDynamicSelectInfo Section Include Properties panel by clicking the magnifying glass icon ().
  9. Enter .ManagerData.IDin the Refresh When field. The section refreshes when the property changes.
  10. Enter .ManagerData.ID!="in the Visible When field. The section appears when the property is not empty.
  11. Select the Run on Client checkbox.

    The panel should look like this:

  12. Close the panel and save the harness.
  13. Test the harness to verify the expected behavior.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us