...
The advanced offline functionality is a bit more tricky to setup, but makes the users able to work completely offline from the time they log in.
The way it works is that all services which are defined have all their orders and order lines downloaded after successful loginIt works by defining which services should be accessible without connectivity after login. After successful login the updateMode="Always|Manual|OnNoOrders" attribute dictates whether orders and lines require manual action to be downloaded.
Opposed to the planned services, adhoc services will only display registrations of adhoc pages which are setup to utilize offline functionality. However, all adhoc registrations will be displayed side by side despite registration type.
It requires a special offline management page to be configured. The services referenced in this page also needs to be set to operationMode="Offline", which is done in the service section in application.cfg.
Code Block | ||
---|---|---|
| ||
<page id="OfflineManagementPage" type="OfflineManagement" icon="icon"> <title defaultValue="Order Overview" /> <offlineManagementConfiguration><offlineManagementConfiguration updateMode="OnNoOrders"> <offlineServices> <offlineService serviceId="Receive"> <list listId="OfflineManagementOrderList"/> <onItemSelected navigateTo="Receive" /> </offlineService> <offlineService serviceId="Pick"> <list listId="OfflineManagementOrderList"/> <onItemSelected navigateTo="Pick" /> </offlineService> <adhocRegistrationService> <!-- All offline adhoc registrations regardless of type will be listed if this section is enabled. --> <list listId="OfflineManagementAdhoc" /> <onItemSelected navigateTo="ViewAllPendingRegistrations"/> <requests> <submit>UploadAdhocRegistrations</submit> </requests> </adhocRegistrationService> </offlineServices> </offlineManagementConfiguration> </page> |
...