Get or Set Personalization Key Values

The PersonalizationParameters class is generated automatically for managing personalization keys. Personalization keys allow the application to define certain input parameter values that are different (personalized) for each mobile user.

The following code provides an example on how to set a personalization key, and pass an array of values and array of objects:

PersonalizationParameters pp =
<PkgName>DB.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.