sc_menu_item
|
|
This variable is only avaliable for menu application and it has the objective of giving acess to a menu item that was selected, this way the user can take desicions before to run the application.
Ex. 1: To clean global variable. if ({sc_menu_item} == "item_1") { sc_reset_global([global1], [global2]); }
Ex. 2: If an application requires a global variable another application can initialize it accordingly. if ({sc_menu_item} == "item_5" && (!isset([glo_employ]) || empty([glo_employ]))) { sc_redir(apl_inf_emp); }
Ex. 2: Use the button on the toolbar menu. if ({sc_menu_item} == "btn_1") { sc_apl_conf("form_customer", "start", "new"); }
|
Macro Scope
|
Menu application
|
Tree menu
|
allMacros onExecute
|
allMacros onApplicationInit onExecute
|
|