on 09-19-2011 10:05 AM
Hi,
I have an RFC that is adding some data in the system. This works, how ever it gets called multiple times with the same data. Every time a synchronization is done it adds a new row with all the same data. (even with 1 entry so it's not because of the loop).
This is how my save function looks, newEntriesMBO is an array with Synchronization parameters. Should I do anything more than [sync delete]?
for (TimeSheets_EnterTimeDataSynchronizationParameters *sync in newEntriesMBO)
{
[sync save];
while ([TimeSheets_TimeSheetsDB hasPendingOperations])
{
[NSThread sleepForTimeInterval:0.2];
}
[sync delete];
}
Edited by: PJ Deraedt on Sep 19, 2011 11:06 AM
Hi PJ,
Perhaps you can share some more details. Are you using subsequent MBO ? I logged a ticked with Sybase on this issue but haven't heard back. If I get any useful response, I 'll update forum.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Once the personalization parameters are set ,you should call [pp save];
the next step would be to check for pending operations
while (TimeSheets_TimeSheetsDB hasPendingOperations)
{
NSThread sleepForTimeInterval:0.2;
}'
Thats it no more code. sync delete etc is all not required. The reason why u get multiple calls is because pp save function is called multiple times.
Thanks
Pradeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.