Article Details
Id:14977
Product:finPOWER Connect
Type:NEW
Version:3.01.00
Opened:09/10/2017
Closed:09/10/2017
Released:23/02/2018
Job: J019777

User Interface script; enhancements made for "AccountsFormActionsUpdate" event

The Global Settings, User Interface script has been enhanced to support disabling an existing Action by using the Available and PermissionKey properties.

To implement, add a Script of Type="Object Events" and Object="User Interface". Paste the template code and edit code under the "AccountsFormActionsUpdate" event. Then link the script under Global Settings, General page, User Interface script.

Note, don't forget to unremark the "eventHandled = True" line.

You can already remove an existing item as shown below:

CustomMenu.MenuItems.RemoveById("Export")

In addition you can now disable an existing action item as follows:

' Using the Available flag
CustomMenu.MenuItems("Export").Available=False

' Using a Permission Key
CustomMenu.MenuItems("Export").PermissionKey="UserDefined.TheKey"