kentico_ivanat
-
8/5/2011 1:27:25 AM
RE:Update custom field in UserSettings table via API
Hi,
Alternative way is using userInfo object, i.e. user.UserSettings.SetValue(columnName, value), but I tested your code and the record was updated correctly.
UserSettingsInfo usi = UserSettingsInfoProvider.GetUserSettingsInfo(1); usi.SetStringValue("color", "blue"); UserSettingsInfoProvider.SetUserSettingsInfo(usi);
The row in the CMS_UserSettings table was updated correctly, for administrator user in default installation.
What exactly was not working in your case?
Thank you for information.
Best regards, Ivana Tomanickova
|