Welcome to the Data Driven Life. It gets very complicated quickly, or so I fell into that hole when I tried this the first time.
I fond that you need to define rules in data that are set for each form. You hide what they shouldn't see with respect to buttons. Moving form content around is where I spent way too much time. If user access says that they have no right to the middle 1/3 of the screen I tried to shift the screen contents and I was never happy with my attempt at this. Currently, I cheat in HTML output when I do not render those parts.
On Mon, May 14, 2018 at 12:29 AM, Ajoy Khaund akhaund@gmail.com wrote:
Hi All,
In my applications I have added a user table where there will be field to define the user level.
Level - 1 Admin: can add users and has access to all Level - 2 Manager - cannot add user but has access to all others Level - 3 Operator - can add transactions but cannot create masters (eg. add/edit a customer)
Now in the master entry forms in the Add & Edit button I can put some code to prevent Level 3 users from adding or editing.
I want Level - 3 users to be able to view the masters. So for them add & edit button will be disabled or some code will b there to tell them they have no access.
Is there a better way? Any ideas which u are implementing are welcome.
-- Regards,
Ajoy Khaund Neamati Road Bhogdoi Mukh Jorhat 785001 Assam, India
Tel: 91-376-2351288 Cell: 91-94350-92287 Mail: akhaund@hotmail.com Mail: akhaund@gmail.com http://teaanalyst.blogspot.com/
"Walking on water and developing software from a specification are easy if both are frozen."
- Edward V. Berard, "Life-Cycle Approaches"
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]