Question
Services Australia
AU
Last activity: 16 Oct 2018 12:03 EDT
How to update other case or table data from user work list case in Offline Mobile app
Hi,
We have a requirement to update other case and table data from user work list case in Offline Mobile app. Can you please let us know if it is possible or not. If yes, any solution would be very helpful.
we can get the data from a data page and load on a case from table and case, if we update the data, not sure how it is going to sync when offline to update the actual case and table data.
Thanks,
Mohammad Gouse
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
While Offline does require that you use the D_pyUserWorklist data page and have certain fields in the report, you are free to include whatever cases you wish. All offline-enabled cases will be packaged and sent to the device. If you then wish to limit what cases appear in the user's worklist, you can add a visibility expression to the section include of the repeating dynamic layout to filter out certain work items based on the value of any of the columns in the report.
I hope this helps!
- James
Services Australia
AU
Thank you James,
D_pyUserWorklist will fetch the current logged in user assignments, But I need to update other case which is not assignment to the logged in user. in this case can I still update that case information?
in other scenario, I need to load data from a table which is not a case related table and update the data to that table from a case in offline and need to sync when device turns online. Can you let me how we can load data and how sync is going to work in this scenario,
Thank you,
Mohammad Gouse.
Pegasystems Inc.
US
Hi Mohammad,
In either case, the data must be collected in the case that is assigned to the operator. You can use a utility shape or post processing activity to update other records on the server when the workflow is replayed on the server.
- James
Services Australia
AU
Services Australia
AU
Hi,
Can anyone please help me on my query. will a data transform/ activity work from local action post processing in offline?
Thanks,
Mohammad Gouse.
Pegasystems Inc.
PL
Activities will not. For the list of supported data transform locations, please refer to the list on https://community.pega.com/sites/default/files/help_v73/procomhelpmain.htm
Services Australia
AU
we are using 7.2.1. But the help link shared is 7.3. I think it wont be helpful.
Pegasystems Inc.
PL
Unfortunately, data transform support in Offline was added only in 7.2.2.
Services Australia
AU
Do we have any solution to update the case data from popup for offline enabled Apps, as pega supports local action as popup for offline apps.
Pegasystems Inc.
IN
Popup will save data on workpage or an embedded page inside workpage. Then, when you Save and sync the workitem, offline process engine will run the post-processing activities/data-transform on server. Please note that this will happen only when the workitem is synced to server.
Pegasystems Inc.
IN
Another method you can try is using 'callActivity' action of offline sync queue. You'll need to write some Javascript for that. This action takes some data/parameters you want to sync and runs the activity. 'data' is in the form of JSON and your activity should know how to handle that data. More info here -
https://community.pega.com/sites/default/files/help_v73/procomhelpmain.htm
Services Australia
AU
I am using 7.2.1 currently, so the link provided will not help. I have a ios custom mobile app with offline enabled, I am opening a popup using embedded page on a case which is offline enabled, But on submit of popup, nothing is working. I am doing it in online only.
Pegasystems Inc.
IN
Above link is valid for 721 as well. callActivity is supported in 721.