LinkedIn
Copied!

Table of Contents

Accessing a list of supported JavaScript functions for a utility library

Version:

Only available versions of this content are shown in the dropdown

Check which JavaScript utility functions you can use for your offline-enabled mobile apps by analyzing the JavaScript documentation of the text file rule for a function rule library. For example, you can determine which functions of the DateTime library have offline support.

Not all Java utility functions have a JavaScript equivalent that you can use in applications that users can access with an offline-enabled app. However, if the JavaScript documentation for the library lists a utility function, that function is supported in offline-enabled apps.

For more information about offline-supported utility function libraries, see Offline-supported function rule libraries.

  1. Ensure that your application instance displays internal rules in search results and explorers by enabling the diagnostic features in your operator preferences:

    1. In the navigation pane of Dev Studio, click the initials of your operator ID, and then click Preferences.

    2. In the Preferences window, in the Diagnostics section, select the Enable diagnostic features check box.

    3. Click Save.

    4. Log out of Pega Platform, and then log in again.

  2. In Dev Studio, search for a library name.

    Enter DateTimeLibrary in the search field.
  3. In the search results, select the text file rule that matches the library name.

    When you search for the DateTime library, select pzpega_functions_DateTimeLibrary.
  4. In the text file form, click Show JavaScript doc.

  5. In the pop-up window with the JavaScript documentation, in the left pane, display the list of utility functions for the library by clicking the text file rule name.

Analyze the list of functions to determine which functions you can use in your offline-enabled app.
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.