Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListHow do I edit the "created by" field in UDT?How do I edit the "created by" field in UDT?
Previous
 
Next
New Post
3/8/2010 10:23 PM
 

I am creating a faculty/staff directory in UDT. To get the project going, I am initially creating each faculty record; but next I will need to give permission to faculty members to edit their own records. Each professor (or their support staff) will eventually be given a username and expected to maintain their own information.

I know that the person who created the record is the one who can edit it. Which means that I need to find a way of changing each "created by" field from my own username to that of the newly assigned faculty user. Although I am able to view the name of the user who created the record (in this case, my own), I can't find a way of editing or changing it.

P.S. Upgrading to Form and List, unfortunately, is not an option. I don't know if doing this would be easier with F&L.

Any ideas would be very welcome.

 
New Post
3/9/2010 4:10 AM
 

The createdBy Field is not editable at all, FnL would not help here.

You can setup a new field "username" of type text and change the edit link XSLT template that the edit link only appears if the username matches or the editor has module edit permissions.


You should set edit row permissions to a staff role. The security in that case is not optimal, as everybody in the staff role would be able to edit any record by manipulating the id in the edit url. In most cases, this is just enough.

 

 
New Post
3/9/2010 9:27 PM
 

Thanks, Stefan, I'll try it out.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListHow do I edit the "created by" field in UDT?How do I edit the "created by" field in UDT?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out