Hi All,
In 9.1 Mobile (device), after creating a Follow-up work order, the new Work Order shows up in the Follow-up Work list page with description only. The work order number is not displayed until user navigates away from the page and returns. I know this is to reduce API calls and improve performance, and has worked this way for a long time.
My customer has two requirements:
1) The new work order number should be displayed immediately
2) There is an automation script that is updating the work order description on save. Customer would like to see the updated description in the follow-up list.
Essentially, after creating a follow-up, we would like to re-fetch and display all the data from the server.
Things I have tried:
- Set page.state.forceSyncFollowUP variable to true in app.xml
- Adding the following lines at the end of RelatedWoController.pageResumed() method:
await woDetailResource.forceSync();
await this.page.findDatasource('relatedrecwo').forceSync();
- At the end of WorkorderEditController.createFollowupWo() method, instead of navigating directly back to relatedWorkOrder page, do the following (start over at the schedule page, and navigate back to relatedWorkOrder page):
this.app.setCurrentPage({name:"schedule"});
this.app.setCurrentPage({
name: "workOrderDetails",
resetScroll: true,
params: {wonum: parentWo.wonum, siteid: parentWo.siteid, href: parentWo.href}
});
this.app.setCurrentPage({
name: "relatedWorkOrder",
resetScroll: true,
params: {itemhref: parentWo.href, fromQuickReport: false, followupclickable: true },
pushStack: true
});
Note that none of this broke anything, just did not achieve the desired result.
Thanks in advance for any ideas.
