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.
-
Ensure that your application instance displays internal rules in search results and
explorers by enabling the diagnostic features in your operator preferences:
-
In the navigation pane of Dev Studio, click the initials of your operator ID, and then click
Preferences.
-
In the Preferences window, in the
Diagnostics section, select the Enable diagnostic
features check box.
-
Click Save.
-
Log out of Pega Platform, and then log in again.
-
In Dev Studio, search for a library name.
For example: Enter DateTimeLibrary in the search field.
-
In the search results, select the text file rule that matches the library name.
For example: When you search for the DateTime library, select
pzpega_functions_DateTimeLibrary.
-
In the text file form, click Show JavaScript doc.
-
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.
What to do next: Analyze the list of functions to determine which functions you
can use in your offline-enabled app.