I have a menu where I use the macros to create and add menu items in the on load event. In the settings of the menu I have checked the option to hide apps that a user shouldn’t have access to. The security for the app works when I click it and get the unauthorized user message but the menu items are still viewable to all users. Does the macro bypass the security settings?
I will ask for our support manager take a look at this.
Thanks for posting!
For now I’m using lookup to get a global group variable and passing that to an if-else and duplicating the menu twice, One for admin including the security apps and the else has all the other apps excluding the security apps.
Hello,
You can set the security configuration of the your dynamic menu with the macros below:
sc_appmenu_remove_item:
http://www.scriptcase.net/docs/en_us/v8/scriptcase-macros/scriptcase-macros#sc_appmenu_remove_item
sc_menu_delete:
http://www.scriptcase.net/docs/en_us/v8/scriptcase-macros/scriptcase-macros#sc_menu_delete
sc_menu_disable:
http://www.scriptcase.net/docs/en_us/v8/scriptcase-macros/scriptcase-macros#sc_menu_disable
sc_menu_item:
http://www.scriptcase.net/docs/en_us/v8/scriptcase-macros/scriptcase-macros#sc_menu_item
sc_script_name:
http://www.scriptcase.net/docs/en_us/v8/scriptcase-macros/scriptcase-macros#sc_script_name
sc_btn_disable:
http://www.scriptcase.net/docs/en_us/v8/scriptcase-macros/scriptcase-macros#sc_btn_disable
sc_reset_menu_disable:
http://www.scriptcase.net/docs/en_us/v8/scriptcase-macros/scriptcase-macros#sc_reset_menu_disable
sc_reset_menu_delete:
http://www.scriptcase.net/docs/en_us/v8/scriptcase-macros/scriptcase-macros#sc_reset_menu_delete
So, using the macros does bypass the security and you must do it yourself?