Debugging and validating offline-enabled apps with the JavaScript console

From PegaWiki
How to connect to offline app console from chrome inspector / This is the approved revision of this page, as well as being the most recent.
Jump to navigation Jump to search

Debugging and validating offline-enabled apps with the JavaScript console

Description Debugging and validations for offline-enabled apps with the JavaScript console. Using validation tools helps you to detect of usage unsupported components in Offline.
Version as of 7.1
Application Pega Platform
Capability/Industry Area Mobile



Accessing the JavaScript console[edit]

To access the JavaScript console and be able to debug a mobile app, follow the instructions in the linked articles for the relevant platform. After you complete the steps for your chosen platform and you are running the JavaScript console, return to this article to see examples with results on how to use different functions.

Once you have access to the JavaScript console, the use of the functions in the console is the same for both platforms.

The following document describes the functions that are used to display the content of the client store:

This information applies to Pega Platform™ version 7.1.8 and later.

Examples of using the functions in the JavaScript console[edit]

getItemTypes[edit]

Example of use:

GetItemTypesExample.jpg

Results:

GetItemTypesResults.jpg

getItems[edit]

Example of use:

GetItemsExample.jpg

Results:

GetItemsResults.jpg

getItemsStats[edit]

Example of use:

GetItemsStatsExample.jpg

Results:

GetItemsStatsResults.jpg

customTableSizes[edit]

Example of use:

CustomTableSizesExample.jpg

Results:

CustomTableSizesResults.jpg

listActions[edit]

Example of use:

ListActionsExample.jpg

Results:

ListActionsResults.jpg