You can create menu items that launch BPA scripts rather than open a page. To do this, create a
navigation option that references your script and then add a menu item that references the navigation option.
If the navigation option is referenced on a
context menu and the navigation option has a "context field", a temporary storage variable will be created and populated with the unique identifier of the object in context. For example, if you add a "script" navigation option to the bill context menu and this navigation option has a context field of BILL_ID, the system will create a temporary storage variable called BILL_ID and populate it with the respective bill id when the menu item is selected.