Show answerHide answer
Correct answer: A Simulate external data sources when the application is offline.
Explanation
Explanation:To allow a Pega mobile app to work offline, you need to ensure that the application can simulate or cache necessary data normally retrieved from external systems. This is essential because when offline, the app cannot make live calls to external data sources (like REST APIs, databases, etc.).
A. Simulate external data sources when the application is offline.
This is the appropriate configuration to support offline capabilities. In Pega, when developing offline mobile apps, you must simulate external data sources so the application can still function without a network connection. This involves creating data transforms or decision rules that mimic expected external data. It ensures that forms, drop-downs, and other fields still populate and function properly during offline use.
Reference:
Pega Docs – Offline mobile apps
B. Source repeating layouts using report definitions.
Using report definitions requires live database access, which is not possible when offline. Therefore, sourcing repeating layouts this way does not support offline mode unless the data is cached or simulated.
C. Configure UI elements to use native controls on mobile devices.
This improves the user experience (UX) but does not address offline access to the application. Native controls affect rendering, not data availability.
D. Source drop-down lists using data pages.
This could work only if the data pages are configured as offline-capable and locally sourced. But if the data page pulls from an external system, it will fail offline. So it's not a reliable standalone solution without additional offline setup (e.g., simulation or caching).
Final Answer:
A. Simulate external data sources when the application is offline