Control field permissions and cell permissions in a datasheet

Source: Internet
Author: User
We used to have a few buttons on the page, control the permissions of these buttons, are all very skilled, such as btnadd Add button, Btnedit Edit button, btndelete Delete button, this page is the Student Basic information Management page Frmstudentmanager.

Then we can set the following permissions corresponding to the relationship:

The "addstudent" right corresponds to the available properties of the-> "Frmstudentmanager.btnadd" button

The "editstudent" right corresponds to the available properties of the-> "Frmstudentmanager.btnedit" button

The "deletestudent" right corresponds to the available properties of the-> "Frmstudentmanager.btndelete" button

This is well understood by everyone.

If the students this table has realname name, code number, age, sex Sex and other fields, users can access those columns also need permission control, we are very easy to confuse, in fact, is also very simple truth, but we do not thoroughly think the nature of the problem, In fact, we can set the following permissions corresponding to the relationship:

The "Viewstudentrealname" permission corresponds to the "Realname Name field is visible" in the-> list

The "Viewstudentcode" permission corresponds to the "Code number field is visible" in the-> list

The "Viewstudentage" permission corresponds to the "age-aged field visible" in the-> list

The "Viewstudentsex" permission corresponds to the "Sex sex field is visible" in the-> list

It's just a few more permissions, some of which are available for the corresponding button, and some of the corresponding columns are visible. The right control of the cell is also the same principle, you can extrapolate, just have the corresponding unique permissions corresponding to each cell.

In fact, the difficulty is not difficult, on the gap to pierce that layer of paper, the basic principle is the same, just changed a way of expression. In the past few years, often encountered, such a question, today's mood to write an article, for everyone to refer to the reference bar, may be sent to use later.

As for the database of all the tables, all the fields of automatic control, etc., that is another area of the problem, the above is only the core of the problem solving, you have a little flexibility, you can handle, and even the control of the data source, simply do not have the right to read the data even read out, it can also be based on the above ideas to solve, It depends on your own realization.

The privilege management, workflow management to the extreme of my ability, a person can only do so few of the few things



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.