Problem :- When we want fetch on demand on that time how we check device is working in offline mode or online mode.
Solution:- we are working in SAP WM 6.0.0 and want to fetch on demand, On that time first off all we check that our device is in offline or online mode.
in that situation we following some steps :-
First create a button in Screen set on which we want to execute online fetch. On that button we can make a action Inside that action we create two sub action:-
a)On first sub action we define a rule that check device is offline or online if device is in online mode than execute mapped action and show all record. else execute second sub action.
b)In Second sub action we also used a rule that verify device is in offline or online mode than execute mapped action and that action show messgae box that your device is in Offline mode else execute first sub action
So using it we can do online fetch after verify that our device is in offline mode.
You can verify your rule with given rule.
For more detail :-
http://scn.sap.com/content?filterID=all~objecttype~objecttype%5Bblogpost%5D