Hello,
I would need to hide or display menu items based on whether a user belongs to a certain group.
Example: within the project there are menu items such as those for creating users or managing groups that a standard user should not see but are reserved only for the administrator user and only he should view them
I don’t seem to have found a function in Scriptcase that would allow this
However, I saw that there is the macro sc_appmenu_remove_item to delete and the macro sc_appmenu_reset to restore
To achieve this I would have thought of a table composed of two fields group_id and item_id (id of the menu item) and at the time of the onLoad of the menu eliminate the items not relevant to the user with a simple while loop
Unfortunately my application is composed of many items and filling the table “by hand” would be very laborious.
I don’t think I’ve even found a function that performs an export of the menu items with the relative description and then loads the table with an import
Does anyone have any ideas?