Welcome!
This community is for professionals and enthusiasts of the Genio platform.
Share your questions and challenges, and help your partners!
Hiding fields in Lists given Access Level
Is it possible to hide fields from a List, where for example, a Retrieval user can't see the column TEST (or the column shows but the content appears as null), while the Admin can view its whole information?
Because Genio allows you to create multiple table lists for the same area within the same form (as long as you provide different identifiers), to achieve the example you provided you can create 2 table lists for the same area, one for "Admin" users with every column, and another for "Retrieval" users, where the TEST column is not present.
Once this is done, create a new function in Genio functions
The following is an example code.
NOTE: Make sure you have an ajax call with async as FALSE, so that the view render waits for your function to end before showing the table lists.
Call you function in "show when" condition for both table lists, each one with its respective level as condition to show
For the server side function simply return the user access level to the current module
user.LevelModules[user.CurrentModule].LevelValue;
Keep Informed
About the Community
Question tools
Stats
Asked: 2/4/2020 下午1:20 |
Seen: 1508 times |
Last updated: 17/4/2020 上午8:21 |