cancel
Showing results for 
Search instead for 
Did you mean: 

deletion of data on pda

Former Member
0 Kudos

hii everyone ,

i wanted to know that data deletion is possible in pda if i m retriving a large volume of data on PDA from first feature & when i press synchronisation for the second time for second feature for retriving another set of large volume of data, the previous data will get automatically deleted or what is the mechanism behind it. can anybody help me out in this regard.

thanx in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hello deven,

first, are you using smartsync functionalities?

if you are, you can make use of the transaction to remove

all the syncbo data in your repository. this is the safe

and proper way to do this.

second, are you trying to retrieve all the syncbo data

on every sync? i.e. not only the delta data?

in smartsync, this will only be possible thru an application

data reset...

regards

jo

Former Member
0 Kudos

hii jo ,

i m using smart sync functionality but can u elaborate it more which transation should i use for removing all the syncbo data in the repository and how to do application data reset.

Former Member
0 Kudos

hello deven,

just to give you an idea:

1) you can retrieve all the syncbo instances then loop on

SyncBoDataFacade.deleteSyncBo to delete them one by one.

2) you can make use of TransactionManager.deleteAll method.

this is already deprecated thus you can use PersistenceManager.deleteAll

method instead. however, this might not be easy to use; there

are some instantiations/re-initializations necessary after

the invocation.

3) make use of the SmartSyncRuntimeManager; but this will

be an implementation dependency thus is not recommended.

SmartSyncRuntimeManager.getInstance().deleteAllData(null, convId);

where convId is your application convId.

application reset:

smartSyncRuntime.getSyncBoDeltaRequestFacade()

.getSyncBoDeltaRequestFacade()

.setGlobalResetProcessing(GlobalResetProcessing.RESET);

please refer to the javadoc for details on the methods.

https://media.sdn.sap.com/javadocs/NW04/SPS15/me/index.html

regards

jo

Former Member
0 Kudos

Hi Devendrakumar,

You can also add the parameter

MobileEngine.Persist.ResetAllClientData = true in the MobileEngine.config file. This would reset the data in the next sync.

Best Regards,

Karthik