Posted: 28 Mar 2017 4:37 EDT Last activity: 4 Apr 2017 10:33 EDT
Data pages with parameters in Offline mode
We currently have a problem with using data pages with parameters in offline mode on mobile device. From Pega guys we know that this is supported and custom populator function is needed for that. Unfortunately, we could not get more details from the guys so far. Could someone please explain, how all this is woking on mobile device and how to write this populator function?
This is about regular data pages, not about large ones.
***Updated by moderator: Lochan to add Categories; add SR details***
Using parameterized data page pages (not large) still involves creating a master data page or data pages that contain all of the data. These master data pages need to be added to the data page whitelist HTML rule unless they are directly used in your UI. You do create a populator method JS method to populate the parameterized data page on the client, but instead of using the runQuery API, you use the ClientCache API to get the values from the master data page. This does not scale as well as the large data page implementation and we generally recommend the large data page method for that reason.
I have updated your original post above to reflect that information and also left a pulse post on the internal app for SRs since I wanted to conect the two for the engineer handling the SR. This linking usually helps!
From a design-time perspective, that is how you configure and use it. For offline purposes, the parameters cannot be anticipated at package time, so the parameterized data pages are packaged as empty. You can get the data into the device by creating master (non-parameterized) data pages, adding them to the data page whitelist HTML rule, then selectively populating the parameterized data page with a populator method as outlined in the large data page document.