Developer forum

Forum » Development » Best practice in creating custom fields on groups

Best practice in creating custom fields on groups

Jackie Nagel
Reply
 Hello! :-)

We're currently developing a module that is using the extranet module. We discovered that when you're creating a custom field it's only specific for users, yet it is still being created on groups (groups and users seems to be the same in the database, other than a different parentid).

Is there any other solutions to set custom fields related to groups other than using the fields created in the database?

Thanks in advance for the advise in this matter! :-)

Replies

 
Jackie Nagel
Reply
 Furthermore, is there any other solution to update these fields on groups other than inserting it directly into the database? :-)
 
Bo Møller
Reply
 Is anyone going to answer this? :-)
 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
This post has been marked as an answer
Hi you two

Custom fields on the AccessUser table--which holds both users and user groups--only affect users. Currently there is no way to add custom fields to a user group. You are correct in the fact that users and groups are in the same table, however even though custom fields for users also create the column for groups, there is no getters or setters in the API for working with these. You might be able to create something using the CustomField API located in the Dynamicweb.Modules.Common.CustomFields namespace.

I hope this answers your questions :)

- Jeppe
Votes for this answer: 0

 

You must be logged in to post in the forum