LinkedIn
Copied!

Table of Contents

Adding JavaScript code to Pega Platform applications when sourcing large data pages from a connector, activity, or data transform

Version:

Only available versions of this content are shown in the dropdown

To source large data pages from a connector, activity, or data transform, add the text file that contains the JavaScript populator function to your application.

Define the JavaScript populator function in a Pega Platform text file. For more information, see Defining a JavaScript function when sourcing large data pages from a connector, activity, or data transform.
  1. In the navigation pane of Dev Studio, click Records.

  2. Expand the Technical category and click Static Content Bundle.

  3. In the Bundle Name column, open the configuration tab for the rule by clicking pypega_ui_userscripts_offline.

  4. On the Definition tab, click the Add item icon.

  5. In the added row, add the JavaScript code to the UI rule:

    1. In the App name field, enter webwb.

    2. In the File extension field, enter js.

    3. In the File name field, enter the name of the text file that contains the JavaScript function, for example, expenses_datapage_api.

  6. Check out the pypega_ui_userscripts_offline rule to your development branch:

    1. Click the arrow next to the Private edit button, and then select Check out to branch.

    2. In the Check Out to Branch dialog box, in the Branch menu, select the branch that you created.

    3. Click Check out to branch.

  7. Click Save.

Did you find this content helpful?

Have a question? Get answers now.

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