Quantcast
Channel: SCN : Unanswered Discussions - SAP for Mobile
Viewing all articles
Browse latest Browse all 5512

Storing different collection property values on the device before transmit (offline) - Agentry

$
0
0

Hi;

 

I am working on Work Manager 6.0 customising with Agentry 6.1.3 and using the windows .NET client for testing. I have an object of poolMembers and another object of InspectionOrders. The poolMembers object has its own edit transaction and the InspectionOrder object has a couple of edit transactions, one main one linked to an update step and another merging one used to update values on the main one. I have created three buttons, start, pause and complete and would like these buttons to work this way: Firstly the pool members are maintained, thereafter an Inspection Order is started by pressing play/start, at this point of clicking start, I would like to take all the current property values of the poolMembers collection currently maintained on the device and store them in a collection/temporary store, thereafter take the start date and start time (these are properties sitting on the Inspection Order) and store them in the same temporary store on the device (this should all happen before transmit). If suppose the user has to change the crew, they have to press pause and then change the crew and at the point of pressing pause, I would like to capture the current poolMembers property values, pause date and time and store this in the same collection/temporary store as that for when start was pressed. I would want to do the same for when complete is pressed. All these collection properties being captured everytime a button is pressed I would like to store on a single device local store/collection and send all the data to the backend at once during the transmit.

 

I currently have the data for when start is pressed being sent to the backend, but when pause is pressed, the data for start is overwritten instead and during transmit, the pause data is sent. How could I possibly implement the transactions and actions in such a way that the start data is stored, together with the pause data, together with the complete data. The reason for all this complexity is because all this will be happening offline. How would I go about storing 2 different object property values on the device, everytime a button is pressed, and on the same table, as this data will be transmitted to the same BAPI table at the end of the transmit. So in other words, when button 1 is pressed, take values of property A (collection) and property B (collection) and temporarily store in Table Z, when button 2 is pressed, take updated values of property A and property B and APPEND to table Z and so on. Send table Z top the backend on transmit.

 

Your help is very much appreciated!

 

Thanks and Regards;

 

Sizo Ndlovu


Viewing all articles
Browse latest Browse all 5512

Trending Articles



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