Skip to main content


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

Loading data pages asynchronously

Updated on April 6, 2022

Enable users to take action on a work item while the system is loading other content by configuring data pages to load asynchronously. When users are able to continue interacting with a case while data is loading in the background, productivity increases and application efficiency is improved.

Data pages are loaded synchronously by default.

The following task describes how to load data pages asynchronously by using a section that is sourced from a data page. This method is useful if you want users to be able to interact with the UI while the data loads, and if the user does not need the data immediately to complete their task.

Alternatively, you can perform one of the following procedures:

  • Use the Load-DataPage step method in an activity, and then wait for the data page to load by using the Connect-Wait step method. This method is useful for loading multiple data pages in the background. For more information, see Load-DataPage and Connect-Wait.
  • Add the Load Data Page automation to a flow. This method is useful if you want a data page to load at a specific stage in a case lifecycle. For more information, see Creating a stand-alone process.
  1. Create a new section or open an existing section.
    ChoicesActions
    Create a new sectionFollow the steps in Creating sections.
    Open an existing section
    1. In the navigation pane of Dev Studio, click Records.
    2. Expand the User Interface category, and then click Section.
    3. On the Instances of Section page, click the section from which you want to load a data page asynchronously.
  2. On the Design tab, in the section from which you want to load a data page asynchronously, click View properties.
  3. In the Layout Properties window, on the General tab, in the Page context field, select Use data page.
  4. In the field that the system displays, press the Down arrow key to select the data page that you want to load asynchronously.
    For example: D_GetCustomerDetails
  5. If the data page you select accepts parameters, then the parameters display in the Data page parameters section, with a field into which you can enter the values that you want to pass to the parameters.
  6. Select the Defer load contents check box.
  7. Click Submit.
  8. Click Save.
Loading asynchronous data pages could cause performance issues if the time to copy the data exceeds the time to load the data page. This performance issue is indicated by the following Pega Predictive Diagnostic Cloud™ notifications:

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.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us