Skip to Content
0
May 24, 2013 at 07:00 AM

MBO operation not called in native IOS app

16 Views

Hi SupDevelopers,

I am developing an native IOS app with SUP2.1.2 xcode 4.2 IOS5.0 simulator where i am developing an simple application wherein user sends data from the application screen like firstname, cell number etc. and have created particular opeartion in MBO and able to access it within the opeartion from application have also checked connection because i am displaying some data from backend to application screen but program crashes when i make the operation call from the code i.e SIG ABRT signal ann have modified my code for actually 15-20 times but not getting the exact reason for the application crash hope you guys can help me out.I am also attaching the code snippet below which i have on the button hit to send data from device to SAP backend.

form=[[mRecruitDemoloadData alloc]init];

// form=[mRecruitDemoloadData getInstance];

if ([password.text isEqualToString:rPassword.text] && [email.text isEqualToString:rEmail.text])

{

[form setCreateUserFIRST_NAME:[NSString stringWithFormat:@"%@",fname.text]];

[form setCreateUserSECOND_NAME:[NSString stringWithFormat:@"%@",sname.text]];

[form setCreateUserLAST_NAME:[NSString stringWithFormat:@"%@",lname.text]];

[form setCreateUserDATE_OF_BIRTH:[NSString stringWithFormat:@"%@",finalDate]];

[form setCreateUserNATIONALITY:[NSString stringWithFormat:@"%@",labelCountry.text]];

[form setCreateUserUSERNAME:[NSString stringWithFormat:@"%@",username.text]];

[form setCreateUserPASSWORD:[NSString stringWithFormat:@"%@",password.text]];

[form setCreateUserMOBILE_NO:[NSString stringWithFormat:@"%@",mobile.text]];

[form setCreateUserEXP_YRS:[NSString stringWithFormat:@"%@",exp.text]];

[form setCreateUserEDUCATION_FIELD:[NSString stringWithFormat:@"%@",labelFieldOfEducation_text.text]];

[form setCreateUserEDUCATIONAL_LEVEL:[NSString stringWithFormat:@"%@",labelEducationalLevel_text.text]];

[form setCreateUserEMAIL:[NSString stringWithFormat:@"%@",email.text]];

[form setCreateUserGROUPEVENT:[NSString stringWithFormat:@"India"]];

[form setCreateUserFUNCTIONAL_REA:[NSString stringWithFormat:@"%@",labelFunctionalArea_text.text]];

[form save];

[form createUser:[NSString stringWithFormat:@"%@",username.text] withEDUCATION_FIELD: [NSString stringWithFormat:@"%@",labelFieldOfEducation_text.text] withFUNCTIONAL_REA:[NSString stringWithFormat:@"%@",labelFunctionalArea_text.text] withNATIONALITY:[NSString stringWithFormat:@"%@",labelCountry.text] withEXP_YRS:[NSString stringWithFormat:@"%@",exp.text] withLAST_NAME:[NSString stringWithFormat:@"%@",lname.text] withSECOND_NAME:[NSString stringWithFormat:@"%@",sname.text] withFIRST_NAME:[NSString stringWithFormat:@"%@",fname.text] withMOBILE_NO:[NSString stringWithFormat:@"%@",mobile.text] withDATE_OF_BIRTH:[NSString stringWithFormat:@"%@",finalDate] withEDUCATIONAL_LEVEL:[NSString stringWithFormat:@"%@",labelEducationalLevel_text.text] withUSERNAME:[NSString stringWithFormat:@"%@",username.text] withEMAIL:[NSString stringWithFormat:@"%@",email.text] withPASSWORD:[NSString stringWithFormat:@"%@",password.text]];

[form submitPending];

while ([mRecruitDemoMRecruitDemoDB hasPendingOperations]) {

[NSThread sleepForTimeInterval:1];

}

[mRecruitDemoMRecruitDemoDB synchronize];