Developer forum

Forum » Feature requests » User Object

Reply

Would be nice as we can get information from the customfield xml file also would be able to save information.

 

 

User u;

u.get_Information("myfield");

 

would be nice if we could get

 

u.set_Information("myfield","myvalue");

 

 


Replies

 
Reply

Im curious if anyone from DW has read this post and if it will be added to a upcoming release?

 
Reply

We don't have this feature on our roadmap for the upcoming release.

 

What would be the purpose of it? In what scenarios would it be used? Would the added information be valid only for the current request or session, or would it be stamped in the database?

 
Reply

To avoid using xmldoc,node and so on everytime you want to update an user where custom fields exsist.

for instance, we have a custom field called county in a solution where we need to update this field in our code, it would save alot of time to beable to use the API instead of taking out the field from the database, then use an xmldoc then search threw the xml doc and then write in the xml doc and then update the field in the database.

 

Furthure more it would be great to get lastname on the user object

 
Reply
In the new DW7 release we have made a brand new User class with brand new custom fields (these are ported when you switch to the new User modules).

You can access them with the property Dynamicweb.Modules.UserManagement.CustomFieldValues which will give you a CustomFieldValueCollection. This collection you can modify and then call User.Save() to save your changes to the database.

For this reason I don't think we are going to add the feature to the old custom fields on the old User class.