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?
At the moment, Genio does not have this capacity. You can play with the colors of the columns and put a color in which the text and the background are the same. But this is not an omission of information it is a trick. If it is sensitive information do not use this.
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: 02/04/20, 13:20 |
Seen: 1504 times |
Last updated: 17/04/20, 08:21 |