on 09-12-2006 10:33 AM
Hello all,
we are working with MiClient 2.5 SP18 & WAS 640 using Smart Sync.
I have a Syncbo (es: z0001) of S01 tyepe with only TOP without items.
This is my scenario:
- users creates some records (es:record1,record2,record3) with Z0001 syncbo Z0001
- users wants to cancel some records (es:record2) before the synchronization.
Problem: is impossible to cancel TOP of the syncbo on the client with API standard.
As I can perform a cancellation of the TOP structure in the syncbo on client?
Thanks all.
HI Rocco,
try out SyncBoDataFacade.deleteSyncBo(SyncBo syncBo).
Docu:
Rgds Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello rocco,
if the syncbo was created and NEVER have been sent to the
middleware, it is a LOCAL syncbo. if it is being deleted
from an application, no delta upload will be sent to the
middleware.
if your requirement is only to suppress the delta data
upload and hold your syncbo data LOCALLY in your client,
your can do this 2 ways.
1) if you want your syncbo to be a local syncbo for the
whole period in time, you can define it thru your metadata.
the SyncBo element attributes <b>suppressUpload="true"</b> and
<b>suppressDownload="true"</b> will make your SyncBo local.
2) if you want to suppress delta upload for a syncbo on
descriptor level you may use the API:
SyncBoOutDeltaFacade.setSendType(SyncBoDescriptor, SyncBoOutDeltaSendType)
your SyncBoOutDeltaSendType parameters should be set to
SyncBoOutDeltaSendType.NO_SEND.
now if you want to suppress on syncbo instance level, i.e.
suppress the delta upload for a specific syncbo instance
you can use
SyncBoOutDelta.setSendType(SyncBoOutDeltaSendType)
the latter however is deprecated and is not recommended
anymore due to performance reason. you can get your SyncBoOutDelta
instance of a specific SyncBo by using the SyncBoOutDeltaFacade.getAllDelta():MeIterator
which will give you all the SyncBoDeltas. Or you can register
an observer implementing the SyncBoOutDeltaObserver and this
observer will be notified with the SyncBoOutDelta instance
for certain SyncBoDescriptors which it observes for.
For details on the APIs, please refer to
https://media.sdn.sap.com/javadocs/NW04/SPS15/me/index.html
regards
jo
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.