The PersonalizationParameters class is generated automatically for managing personalization keys. When a personalization parameter value is changed, the call to save automatically propagates the change to the server.
Consider a personalization key "pkcity" that is associated with the synchronization parameter "cityname". The following example shows how to get and set personalization key values:
//get personalization key values SUP101PersonalizationParameters *pp = [SUP101SUP101DB getPersonalizationparameters]; MBOLogInfo(@"Personalization Parameter for City = %@", pp.PKCity); //Set personalization key values pp.PKCity = @"Hull"; [pp.save]; //save the new pk value. [SUP101SUP101DB synchronize];
If a synchronization parameter is personalized, you can overwrite the value of that parameter with the personalization value.
A personalization parameter cannot have a value of null. When you create a personalization parameter in Sybase Unwired WorkSpace that allows null as a valid value, and the default value is null, the parameter may be invalid. Ensure that you enter a valid value for the password, when you create the parameter, or by specifying a value in your application.