Support Article
Logging into mobile app while Offline is not behaving properly
SA-29892
Summary
In Sales Automation mobile application, the following offline functionalities are not working properly:
- Not able to create Opportunity in offline
- User name is not visible after killing and relaxing into the app.
Error Messages
Not Applicable
Steps to Reproduce
- Login into the mobile app.
- All packaging happens and application comes up.
- Now logout or close the app and reopen the opp as the same user
- Application will show up but behaves weirdly.
- Like..Operator id will be missing.try to create an activity or opportunity (there are OSCO cases) it throw alert saying "cannot perform this operation while offline ".No scripts will get executed so no data is present in the list views of Wo screens.
Root Cause
A defect in Pegasystems’ code or rules: On re-login app is not behaving properly. Offline enabled case is throwing "Cannot perform this operation"
Resolution
Apply Hfix-30106 with following changes :
On second login, data pages are not loaded and its causing the issue. In pzpega_ui_doc_HCLoadManager.js, added the following code to load the data page in "onStatusUpdate" method:
else{
if(status.event === undefined || status.event == theWindow.launchbox.PRPC.ClientStore.Event.SUCCEEDED){
if(status.event === undefined){
status.wasFullSync = true;
status.upsertedItems = {"datapage": ["*"]};
status.deletedItems = {};
}
fireDataSyncEvent(args, status);
}
Published November 20, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.