Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8852

Re: SUP 2.2 HWC (Offline mode) using master data

$
0
0

Just Add on... By writing function script in custom.js file, you can make change status / create record while your device in offline.

 

Make sure your app was light weighted...while developing HWC app for offline.

 

You have to create Custom Action Menu item in Screen and call this. Exmaple below...

 

function customAfterMenuItemClick(screen, menuItem) {

//if we are online, do an online request from the Ticket screen.

        if (!isDeviceOffline) {

            menuItemCallbackTicketsOnline_Submit();

        }

        else {

            //if we are server-initiated and are offline, do a submit workflow from the Customer screen

            if (!clientInitiated) {

                doSaveAction(false);

                menuItemCallbackCustomerSI_Offline_Submit();

            }

            else { //if we are client-initiated and are offline, do a submit workflow from the Customers listview

                doSaveAction(false);

                doSaveAction(false);

                menuItemCallbackCustomersCI_Offline_Submit();

            }

 

Regards,

Naresh


Viewing all articles
Browse latest Browse all 8852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>