Below is an example of how a user can add a new button in the Work Order Detail screen to update WO from the Server.
1) In app.xml, Add a button before the work order Edit button
<button icon="carbon:renew" kind="ghost" padding="false" on-click="reloadWO"/>
2) In appCustomizations.js - add a new function as
async reloadWO({datasource}) {
await this.app.findDatasource('woDetailResource').forceSync();
}
3) Adjust the adaptive-column's width in app.xml to include the new button on medium and large screens.
For the button's container adaptive-column - change xlarge-width="5" large-width="10" to xlarge-width="15" large-width="20"
and for its previous adaptive-column - change xlarge-width="35" large-width="90" to xlarge-width="25" large-width="80"
#MobileApps #technician #MAFConfig #work_technician