Associate a custom action with a menu item, custom action item, or
control, and write your own code to control its behavior.
Prerequisites
From the Screen Design Palette, add the item that you want to
customize.
Task- In the Screen Design page of the Hybrid App Designer,
select the menu item, control, or custom action that you want to
configure.
- In the Properties view Type field, select
Custom.
- Edit the Custom.js file, adding custom code in
the customBeforeMenuItemClick to handle the
action.
In your code, call the custom function that is autogenerated in
hybridapp.js
- Save the Custom.js file.
The next time you regenerate the Hybrid App package, your
changes to this file are preserved.