on 06-06-2006 8:35 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.