We have the following menu:
Running:
We use the macro sc_menu_delete() to remove a few items:
In the event onApplicationInit should put the following code:
sc_menu_delte (item_1, item_3);
After running the application, we can verify your viewing:
If you only want to disable menu items, we can use the macro sc_menu_disable ():
In the event onApplicationInit should put the following code:
sc_menu_disable (item_1, item_3);
After running the application, we can verify your viewing:
These macros are very useful for the validation of profiles where the profiles are accessing this menu are disabled.
ex:. if ([Profile] = "client") {
sc_menu_delete (item_5);
}
Amanda Santos (Migrated deleted Agent)
Comments