on 04-10-2012 3:39 PM
Dear all,
Is there anybody has run the whole flow for the new version 2.1.2 for register the user and synchronize the data from the server?
Now I can register the device user from xcode side, and it worked correctly.
But I met a issue on synchronize the data from SUP Server.
Details as the following:
After register the device user and openConnection method,
[CRMDLW_CRM_V1_PRJDB openConnection];
The following method's return code always is 2 - Pending.
[CRMDLW_CRM_V1_PRJDB beginOnlineLogin:@"vincentAdmin"
password:@"Delaware"];
while([CRMDLW_CRM_V1_PRJDB getOnlineLoginStatus].status ==
SUPLoginPending)
{ NSLog(@"%d", [CRMDLW_CRM_V1_PRJDB getOnlineLoginStatus].status);
Could you provide me some idea for this problem, please?
Or I need not to use this method?
But if not, we could not get data by synchronization operation.
Is anyboay can provide me some help?
Thanks!
Nobody answer me!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Vincent
Its been a while since I last coded with iOS against SUP but my code looked like this (apologies it may be out of date)
while(!success) |
{
@try { | ||
[iSurvey_ISurveyDB beginOnlineLogin:@"supAdmin" password:@"s3pAdmin"]; | ||
// if we get here, login was successful | ||
success = YES; | ||
} @catch(NSException *e) | ||
{ | ||
MBOLogError(@"*********** loginToSync failed, trying again ***********"); | ||
} |
}
Hi Lan,
Thanks for your reply.
As you said :
[iSurvey_ISurveyDB beginOnlineLogin:@"supAdmin" password:@"s3pAdmin"];
success = YES;
But if there no statement to check the status whether sucess, you will always get the sucess = YES.
So I think the while will only do one time.
Do you synchronize the data from SUP server to device correctly?
Regards,
Vincent
I'm also thinking you have looked at the iOS tutorial at http://scn.sap.com/docs/DOC-8803
Ian
Just saw another thread... http://scn.sap.com/thread/2052067
That suggests a few things as well as ...
For better understanding whats causing the error, Comment the lines begining with #ifdef and #endif in MBODebugLogger.m of the Generated Code. And it prints the Log to the Console -Kiran
Ian
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
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.