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.
An operation can have a parameter that is one of the SAP Mobile Platform list types (such as IntList, StringList, or ObjectList). This code shows how to set a personalization key, and pass an array of values and an array of objects:
PersonalizationParameters pp = SMP101DB.getPersonalizationParameters(); pp.setMyIntPK(10002); pp.save(); IntList il = new IntList(2); il.add(10001); il.add(10002); pp.setMyIntListPK(il); pp.save(); MyDataList dl = new MyDataList(); //MyData is a structure type defined in tooling MyData md = new MyData(); md.setIntMember( ... ); md.setStringMember2( ... ); dl.add(md); pp.setMyDataList( dl ); pp.save();
If a synchronization parameter is personalized, you can overwrite the value of that parameter with the personalization value.