Solution:
Follow below steps to disable Applet Menu Items.
- In Tools, Navigate to Applet Object -> Applet Method Menu Item.
- Query for "ApplyTemplate" and "Suppress Menu Item" to TRUE.
- Similary do the same for "SaveTemplate"
- Compile Change and login to Application, You can see "SaveTemplate", "ApplyTemplate" Menu Items are no longer visible.
But you can still invoke the methods by using key board shortcuts associated to those commands. To prevent this, you can use CanInvokeMethod Applet User Property to disable the method.
i have recently found that CanInvokeMethod having one drawback which will say all time button should be shown when condition is met.
ReplyDeleteSo we have to script to disable this buttons when to invoke conditionally then buttons will be disabed in Query mode.