GAB Hook Maintenance

From GAB Help
Jump to: navigation, search

Getting Scripts setup in Global Shop

System Support> Administration> GAB Script Hook Maintenance


caption


Setting up User Defined Hooks

➢When the screen comes up click the Add New button (half way down the screen) a number over 1,000,000 will show in the Hook field, then the User option button will be selected.

➢Next, check Active Hook if you want to run the script. Then decide if it will be run Synchronously or Asynchronously. If the program writes back to Global Shop, please leave the Asynchronous checkbox un-checked, if the .gas program doesn’t need to send anything back to Global Shop please check the Asynchronous box.

➢Next, click the down arrow next to the GAS Program text box, to select the .gas file to run.

➢Then enter a description for the script.

➢Finally, click the save button, as long as the script is Active it will show in the bottom half of the screen.

Setting Global Defined Hooks

➢Type the Hook number being used.

➢ Next, check Active Hook if you want to run the script. Then decide if it will be run Synchronously or Asynchronously. If the program writes back to Global Shop, please leave the Asynchronous checkbox un-checked. If the .gas program doesn't need to send anything back to Global Shop please check the Asynchronous box.

➢Next, click the down arrow next to the GAS Program text box, to select the .gas file to run.➢The description for the script will be in the GAS Description Field.

➢Finally, click the save button, as long as the script is Active it will show in the bottom half of the screen.


Creating a Custom Menu Item with GAB – For User Defined Scripts

➢Right-click on the header of where you want to run the script.

➢Select "Add New Custom Menu Item"


Custom menu1.jpg


➢Select type "GAB"

➢Enter a title

➢Browser for custom hook

➢Click "Save"


caption


Custom Menu Item screen

➢Set permissions for users and/or groups

➢Click "Save"


Custom menu3.jpg


Setting user/group permissions

➢Restart Global Shop for Menu Item to become active