Codeart wss3.0 (MOSS) Field editing permission control solution (V1.0)

Source: Internet
Author: User
By default, Windows sharepint service 3.0 (or MOSS) does not support field-level permissions. During the implementation of the project, the customer often raises this requirement.

There are two solutions:

1) develop custom fields and add control logic to the fields.

Advantage: you can completely control the display and editing.
Disadvantage: you cannot enable permission Control for system fields. In addition, you need to overwrite all fields of the system, which requires a lot of work.

2) rewrite the listfielditerator control in the system template (this control is used to generate the field editing table on the form page) to implement field permission control.

Advantage: All types of fields can be controlled.
Disadvantage: you cannot completely control the reading of fields-you cannot control the display of fields on the list page.

In combination, we decided to adopt solution 2. Since the field reading cannot be fully controlled, this solution only controls field editing.

I have been trying to implement this solution. Today, I finally finished it and packaged it into a standard WSP package. If you are engaged in WSS Or Moss development, you can try it out.

Codeart WSS field editing permission control solution implements permission Control for WSS (MOSS) List and library field editing,
You can precisely control which users can edit a field. Provides a friendly setting interface.

Instructions for use:

1) install the solution

Modify set site_url = "http: // localhost: 81" in install. cmd, set 81 to the actual website port, and then run install. cmd.

2) Deployment Solution

After running install. cmd, it is automatically deployed to the configured site. to deploy it to another site, log on to the Management Center> operations> solution management to deploy the site.

3) test
Go to the "List Settings" interface of any list. You can see the link for setting the field permissions.

-----------------------------
Field permission settings:

All personnel: users with the permission to edit items can edit fields.
Creator: the creator of the item can edit fields.
Specified user: the specified user can edit fields.

By default, all users and creators have the edit permission.

The website administrator can edit all fields, so do not use the Administrator account during testing.


Interface effect:


List settings:



Field permission settings:


The title is read-only and the content can be edited:

Please try it out. Download solution: codeart_fieldrightsolution.zip

AllArticle:
Codeart wss3.0 (MOSS) Field editing permission control solution (V1.0)
Codeart wss3.0 (MOSS) Field editing permission control solution implementation-Summary
Implementation of the moss field editing permission control solution (1)-management page development and configuration information persistence
WSS page customization series (2) --- customizing the form pages of a single list
WSS page customization series (3) --- rewrite the form storage Logic
Moss field editing permission control solution (4)-packaging Solution

Postscript:

Latest Code Sorted on codeplex: Codeart SharePoint permission extension 1.0 Beta publish

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.